show waiting state while redirecting to the OAuth 2.0 authorization page

This commit is contained in:
MaysWind
2025-10-23 00:42:29 +08:00
parent 234e7a55ff
commit b21fff5b15
4 changed files with 43 additions and 35 deletions
+4 -2
View File
@@ -29,7 +29,8 @@ export function useLoginPageBase(platform: 'mobile' | 'desktop') {
const twoFAVerifyType = ref<string>('passcode');
const oauth2ClientSessionId = ref<string>('');
const logining = ref<boolean>(false);
const loggingInByPassword = ref<boolean>(false);
const loggingInByOAuth2 = ref<boolean>(false);
const verifying = ref<boolean>(false);
const inputIsEmpty = computed<boolean>(() => !username.value || !password.value);
@@ -73,7 +74,8 @@ export function useLoginPageBase(platform: 'mobile' | 'desktop') {
tempToken,
twoFAVerifyType,
oauth2ClientSessionId,
logining,
loggingInByPassword,
loggingInByOAuth2,
verifying,
// computed states
inputIsEmpty,