feat(AliyunAuthDialog): 添加配置支持,允许自定义refreshToken和保存设置

This commit is contained in:
jxxghp
2024-11-20 20:25:32 +08:00
parent c956e271a2
commit 77cb817523
4 changed files with 53 additions and 3 deletions
+3 -2
View File
@@ -28,8 +28,9 @@ let timeoutTimer: NodeJS.Timeout | undefined = undefined
// 完成
async function handleDone() {
clearTimeout(timeoutTimer)
if (props.conf?.cookie) {
await savaAlistConfig()
await savaU115Config()
}
emit('done')
}
@@ -84,7 +85,7 @@ async function checkQrcode() {
}
// 保存cookie设置
async function savaAlistConfig() {
async function savaU115Config() {
try {
await api.post(`storage/save/u115`, props.conf)
} catch (e) {