Explorar el Código

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

haojianlong hace 4 años
padre
commit
6f6c9d27c4
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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']