瀏覽代碼

修复设备删除后没有清空选中行的bug

zhonghuizhen 1 周之前
父節點
當前提交
4af66c1081
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/component/device/index.vue

+ 2 - 0
src/views/component/device/index.vue

@@ -1259,6 +1259,7 @@ export default {
           break
         case 'customRemove':
           this.handleCustomRemove(selection)
+
           break
         case 'customExport':
           this.handleCustomExport(selection, data)
@@ -1361,6 +1362,7 @@ export default {
           })
           // 删除后刷新
           await this.getDatas()
+          this.$refs.crud.clearSelection(); // 清空选中状态
           this.$message.success('删除成功!')
         })
         .catch(() => {})