소스 검색

Merge branch 'dev' into 'test'

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

See merge request quanshu/mp-ui-pc!265
世轩 3 년 전
부모
커밋
0ca4197f54
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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) {