浏览代码

小问题

hbchen 1 年之前
父节点
当前提交
3d8a74f554
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/system_manage/etaBaseConfig.vue

+ 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 
                         }
                         }