Ver código fonte

移动时文件夹一致不可移动

haojianlong 4 anos atrás
pai
commit
f48e6e81a0
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/components/homeView/move.vue

+ 4 - 0
src/components/homeView/move.vue

@@ -96,6 +96,10 @@ export default {
             if (!this.value.length || !this.data.length) {
                 return;
             }
+            if (this.value == this.data[0].folderId) {
+                this.$message.warning('目标位置与当前位置一致')
+                return
+            }
             const postParams = {
                 content: [],
                 projection: ["folderId"],