mirror of
https://github.com/iLay1678/i-tools.git
synced 2025-07-03 02:32:17 +08:00
up
This commit is contained in:
parent
1956944c76
commit
946beb4f36
1
.github/workflows/docker-build.yml
vendored
1
.github/workflows/docker-build.yml
vendored
@ -13,6 +13,7 @@ on:
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.gitignore'
|
||||
- '.github/workflows/clean-up.yml'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
@ -20,8 +20,8 @@
|
||||
class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400"
|
||||
readonly spellcheck="false" placeholder="访问令牌" />
|
||||
<button data-clipboard-target="#accessToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasAccessToken
|
||||
? 'hover:bg-gray-100 text-gray-500 hover:text-blue-500'
|
||||
: 'text-gray-300 cursor-not-allowed'
|
||||
? 'hover:bg-gray-100 text-gray-500 hover:text-blue-500'
|
||||
: 'text-gray-300 cursor-not-allowed'
|
||||
}`" :disabled="!hasAccessToken">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
|
||||
stroke="currentColor">
|
||||
@ -38,8 +38,8 @@
|
||||
class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400"
|
||||
readonly spellcheck="false" placeholder="刷新令牌" />
|
||||
<button data-clipboard-target="#refreshToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasRefreshToken
|
||||
? 'hover:bg-gray-100 text-gray-500 hover:text-blue-500'
|
||||
: 'text-gray-300 cursor-not-allowed'
|
||||
? 'hover:bg-gray-100 text-gray-500 hover:text-blue-500'
|
||||
: 'text-gray-300 cursor-not-allowed'
|
||||
}`" :disabled="!hasRefreshToken">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
|
||||
stroke="currentColor">
|
||||
@ -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)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ export interface TokenResponseEncrypt extends ApiResponse<{
|
||||
}> {}
|
||||
|
||||
export interface QrCodeStatus {
|
||||
status: 'WaitLogin' | 'LoginSuccess' | 'LoginFailed';
|
||||
status: 'WaitLogin' | 'LoginSuccess' | 'QRCodeExpired' | 'ScanSuccess' | 'LoginFailed';
|
||||
authCode?: string;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user