Browse Source

租户会员类别管理编辑bug修复

zhuhao 2 years ago
parent
commit
154bb920da
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/memberType/index.vue

+ 3 - 1
src/views/memberType/index.vue

@@ -246,7 +246,9 @@ export default {
       // this.isDialogs=true
       // this.isDialogs=true
       this.$refs.ruleForm.validate((valid) => {
       this.$refs.ruleForm.validate((valid) => {
         if (valid) {
         if (valid) {
-          this.ruleForm.functions = this.functions
+          if (this.functions.length>0) {
+            this.ruleForm.functions = this.functions
+          }
           this.btnLoading = true
           this.btnLoading = true
           if (this.ruleForm.hasOwnProperty('functions')) {
           if (this.ruleForm.hasOwnProperty('functions')) {
             var functionModifyPaths = []
             var functionModifyPaths = []