三方登录显示增加配置

This commit is contained in:
不做码农 2022-10-11 20:23:59 +08:00
parent 49cf36984d
commit 43f7d0cbc5
2 changed files with 7 additions and 3 deletions

View File

@ -67,5 +67,9 @@ export default {
/**
* 水印文案
*/
watermarkText: 'ZRAdmin.NET'
}
watermarkText: 'ZRAdmin.NET',
/**
* 是否显示其他登录
*/
showOtherLogin: false
}

View File

@ -53,7 +53,7 @@
<span v-else> 中...</span>
</el-button>
</el-form-item>
<div class="other-login">
<div class="other-login" v-if="defaultSettings.showOtherLogin">
<el-divider>{{ $t('login.otherLoginWay') }}</el-divider>
<img src="../assets/icons/gitee-fill-round.png" alt="" class="login-icon" @click="onAuth('GITEE')" />
<img src="../assets/icons/github-fill.png" alt="" class="login-icon" @click="onAuth('GITHUB')" />