Explorar o código

perf(views): 优化接口传参变更导致的修改

wangshun hai 3 semanas
pai
achega
024c196873

+ 1 - 1
src/views/create-device/VerifyParameters.vue

@@ -22,7 +22,7 @@ const colorShow = (value: number | string) => {
 
 onMounted(() => {
   handleRequest(async () => {
-    parameterVerificationList.value = await getDeviceParams(props.form.devId, false);
+    parameterVerificationList.value = await getDeviceParams(props.form.devId);
   });
 });
 </script>

+ 1 - 1
src/views/device-work-status/DeviceWorkParams.vue

@@ -48,7 +48,7 @@ watch(visible, () => {
 
 const getAllParamGroups = () => {
   handleRequest(async () => {
-    const data = await getDeviceParams(props.devId, false);
+    const data = await getDeviceParams(props.devId);
     allParamGroups.value = data;
 
     if (data.length) {

+ 1 - 1
src/views/equipment-details/EquipmentDetails.vue

@@ -536,7 +536,7 @@ const obtainDeviceDetails = (value: boolean) => {
       } else {
         customizationData.value = [];
       }
-      parameterVerificationList.value = await getDeviceParams(deviceId, false);
+      parameterVerificationList.value = await getDeviceParams(deviceId);
       devicesList.value = await noPaginationDevicesList();
     }
   });