fix: 修复部分已知的问题

This commit is contained in:
xlsea
2025-05-09 17:37:24 +08:00
parent f946d05815
commit 7a27cdb3ab
6 changed files with 24 additions and 27 deletions

View File

@ -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'>;

View File

@ -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>