瀏覽代碼

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

haojianlong 4 年之前
父節點
當前提交
f48e6e81a0
共有 1 個文件被更改,包括 4 次插入0 次删除
  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"],