Эх сурвалжийг харах

Merge branch 'dev' into 'test'

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

See merge request quanshu/mp-ui-pc!265
世轩 3 жил өмнө
parent
commit
0ca4197f54

+ 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) {