mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 02:58:31 +08:00
fix(系统设置): OAuth2认证信息校验
This commit is contained in:
parent
8ae0002dda
commit
d1709c8a5a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user