hbchen 1 жил өмнө
parent
commit
3d8a74f554

+ 2 - 2
src/views/system_manage/etaBaseConfig.vue

@@ -490,7 +490,7 @@ export default {
                     }
                     }
                 }
                 }
                 if(valid){
                 if(valid){
-                    if(!(this.formData.WxAppId && this.formData.WxAppSecret && this.formData.WxId)){
+                    if(this.formData.WxAppId || this.formData.WxAppSecret || this.formData.WxId){
                         // 只要有一个填,其他必填
                         // 只要有一个填,其他必填
                         if(!this.formData.WxAppId){
                         if(!this.formData.WxAppId){
                             this.$message.warning('AppID 不能为空')
                             this.$message.warning('AppID 不能为空')
@@ -498,7 +498,7 @@ export default {
                         }else if(!this.formData.WxAppSecret){
                         }else if(!this.formData.WxAppSecret){
                             this.$message.warning('AppSecret 不能为空')
                             this.$message.warning('AppSecret 不能为空')
                             return 
                             return 
-                        }else{
+                        }else if(!this.formData.WxId){
                             this.$message.warning('原始Id 不能为空')
                             this.$message.warning('原始Id 不能为空')
                             return 
                             return 
                         }
                         }