|
@@ -490,7 +490,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
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){
|
|
|
this.$message.warning('AppID 不能为空')
|
|
@@ -498,7 +498,7 @@ export default {
|
|
|
}else if(!this.formData.WxAppSecret){
|
|
|
this.$message.warning('AppSecret 不能为空')
|
|
|
return
|
|
|
- }else{
|
|
|
+ }else if(!this.formData.WxId){
|
|
|
this.$message.warning('原始Id 不能为空')
|
|
|
return
|
|
|
}
|