Prechádzať zdrojové kódy

bugfix:
终端设备-数据统计-添加设备后上方数据统计未实时更新,需要重新刷新网页

lihao16 5 mesiacov pred
rodič
commit
7d387eb339

+ 2 - 0
smsb-plus-ui/src/views/smsb/device/index.vue

@@ -871,6 +871,7 @@ const submitForm = () => {
       proxy?.$modal.msgSuccess('操作成功');
       dialog.visible = false;
       await getList();
+      await getDeviceStatistics();
     }
   });
 };
@@ -882,6 +883,7 @@ const handleDelete = async (row?: DeviceVO) => {
   await delDevice(_ids);
   proxy?.$modal.msgSuccess('删除成功');
   await getList();
+  await getDeviceStatistics();
 };
 
 /** 导出按钮操作 */