Explorar o código

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

haojianlong %!s(int64=4) %!d(string=hai) anos
pai
achega
f48e6e81a0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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"],