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

View File

@@ -301,7 +301,7 @@ const scrollDeviceTreeToSelectedDevice = (timeout: number = 500) => {
<div>selectedKeys: {{ selectedKeys }}</div>
<div>expandedKeys: {{ expandedKeys }}</div>
<div>selectedDevice: {{ selectedDevice?.deviceId }}</div>
<NScrollbar style="width: 500px; height: 400px; border: solid 1px salmon">
<NScrollbar style="width: 800px; height: 400px; border: solid 1px salmon" x-scrollable>
<pre>{{ selectedDevice }}</pre>
</NScrollbar>
</NLayoutContent>