mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix: 修复部分已知的问题
This commit is contained in:
@ -30,8 +30,8 @@ const tenantOption = ref<SelectOption[]>([]);
|
||||
|
||||
const model: Api.Auth.PwdLoginForm = reactive({
|
||||
tenantId: '000000',
|
||||
username: '',
|
||||
password: ''
|
||||
username: 'admin',
|
||||
password: 'admin123'
|
||||
});
|
||||
type RuleKey = Extract<keyof Api.Auth.PwdLoginForm, 'username' | 'password' | 'code' | 'tenantId'>;
|
||||
|
||||
|
@ -34,7 +34,7 @@ async function bindSsoAccount(type: Api.System.SocialSource) {
|
||||
}
|
||||
|
||||
/** 解绑SSO账户 */
|
||||
async function unbindSsoAccount(socialId: string) {
|
||||
async function unbindSsoAccount(socialId: CommonType.IdType) {
|
||||
startBtnLoading();
|
||||
const { error } = await fetchSocialAuthUnbinding(socialId);
|
||||
if (!error) {
|
||||
@ -83,7 +83,7 @@ function getSocial(key: string) {
|
||||
type="error"
|
||||
size="small"
|
||||
:loading="btnLoading"
|
||||
@click="unbindSsoAccount(socialList.find(s => s.source === source.key)?.authId || '')"
|
||||
@click="unbindSsoAccount(getSocial(source.key)?.id || '')"
|
||||
>
|
||||
解绑
|
||||
</NButton>
|
||||
|
Reference in New Issue
Block a user