Explorar el Código

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

zhonghuizhen hace 1 semana
padre
commit
4af66c1081
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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(() => {})