瀏覽代碼

移动时所属分类一致不可移动

haojianlong 4 年之前
父節點
當前提交
6f6c9d27c4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/homeView/move.vue

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

@@ -64,6 +64,10 @@ export default {
         return
       }
       const categoryId = this.value[this.value.length - 1]
+      if (categoryId == this.data[0].categoryId) {
+        this.$message.warning('目标位置与当前位置一致')
+        return
+      }
       const pa = {
         content: [],
         projection: ['categoryId']