Explorar el Código

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

DELL hace 3 años
padre
commit
6f4bf3fd3e
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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) {