Parcourir la source

分类管理二级分类可编辑为一级分类

DELL il y a 3 ans
Parent
commit
6f4bf3fd3e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/views/business/category/components/CategoryCreate.vue

+ 3 - 0
src/views/business/category/components/CategoryCreate.vue

@@ -162,6 +162,9 @@ export default {
     // 确认
     saveClick() {
       this.loading = true;
+      if(this.form.parentId == ""){
+        this.form.parentId = 0
+      }
       const subForm = this.$refs["form"];
       subForm.validate((valid) => {
         if (valid) {