fix: add some comments
This commit is contained in:
@@ -18,5 +18,9 @@ export const postDefParameterPage = async (stationCode: string, pageQuery: PageP
|
||||
export const putDefParameter = async (stationCode: string, updateVO: DefParameterUpdateVO) => {
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.put<Result<DefParameterResultVO>>(`${prefix}/api/system/defParameter`, { ...updateVO });
|
||||
return resp;
|
||||
const [err, defParameterData] = resp;
|
||||
if (err || !defParameterData) {
|
||||
throw err;
|
||||
}
|
||||
return defParameterData;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user