Ver código fonte

设备校准记录导入后清除平台缓存

cyy 14 horas atrás
pai
commit
ceea54cf4e

+ 3 - 0
src/views/component/device/smallEquipmentImport.vue

@@ -110,6 +110,7 @@
 import request from '@/utils/request'
 import { uploadFile } from '@/api/platform/file/attachment'
 import IbpsImport from '@/plugins/import'
+import { cleanFormCache, cleanPlatformCache } from '@/api/platform/system/cache'
 
 export default {
   components: {
@@ -739,6 +740,8 @@ export default {
         callback(list)
       }
       this.$emit('confirm', this.paramForm)
+      await cleanPlatformCache().then(() => {})
+      await cleanFormCache().then(() => {})
     },
     dataTransfer(dataset, data, from = 'id_', to = 'name_') {
       const list = data ? data.split(',') : []