fix(系统设置): OAuth2认证信息校验

This commit is contained in:
shiziyuan9527 2022-11-15 17:45:50 +08:00 committed by lyh
parent 8ae0002dda
commit d1709c8a5a

View File

@ -388,7 +388,11 @@ export default {
let resultValidate = {validate: true, msg: this.$t('test_resource_pool.fill_the_data')};
let info = this.form.configuration;
for (let key in info) {
if (info[key] != '0' && !info[key]) {
// Oauth2 logoutUrl
if (this.form.type === 'OAuth2' && key === 'logoutUrl') {
continue;
}
if (info[key] !== '0' && !info[key]) {
resultValidate.validate = false;
return resultValidate;
}