fix: add some comments

This commit is contained in:
yangsy
2025-08-21 20:25:25 +08:00
parent badfbfafbb
commit 9b3c60135c
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
};