Explorar o código

删除不成功,不执行删除节点操作

gangyj %!s(int64=3) %!d(string=hai) anos
pai
achega
ba51877c6b
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/views/manager/archivetree.vue

+ 6 - 2
src/views/manager/archivetree.vue

@@ -583,8 +583,12 @@ export default {
         cancelButtonText: '取消'
       })
         .then(() => {
-          this.remove(node.data.id)
-          _that.$refs.trees1.remove(node) //删除界面上的节点
+          this.remove(node.data.id).then(()=>{
+            _that.$refs.trees1.remove(node) //删除界面上的节点
+          }).catch(()=>{
+
+          })
+          
         })
         .catch(() => {