This commit is contained in:
我若为王 2024-12-11 10:49:17 +08:00
parent 1956944c76
commit 946beb4f36
3 changed files with 8 additions and 6 deletions

View File

@ -13,6 +13,7 @@ on:
paths-ignore:
- 'README.md'
- '.gitignore'
- '.github/workflows/clean-up.yml'
permissions:
contents: read
packages: write

View File

@ -127,7 +127,8 @@ async function checkStatus(sid) {
setTimeout(() => checkStatus(sid), 2000)
} else if (data.status === "LoginFailed") {
message.error('登录失败,请刷新页面重试')
location.reload()
} else if (data.status === "QRCodeExpired") {
message.error('链接过期,请刷新页面重试')
} else {
setTimeout(() => checkStatus(sid), 2000)
}

View File

@ -22,7 +22,7 @@ export interface TokenResponseEncrypt extends ApiResponse<{
}> {}
export interface QrCodeStatus {
status: 'WaitLogin' | 'LoginSuccess' | 'LoginFailed';
status: 'WaitLogin' | 'LoginSuccess' | 'QRCodeExpired' | 'ScanSuccess' | 'LoginFailed';
authCode?: string;
}