mirror of
https://github.com/hmjz100/LinkSwift.git
synced 2026-09-20 02:43:36 +08:00
优化:改进阿里云盘令牌为空时的判断 (#431)
This commit is contained in:
@@ -6568,7 +6568,11 @@ button.downloadSubtitle:disabled {
|
||||
|
||||
if (temp.page === "home") {
|
||||
selects = selects.filter(item => item.type === "file");
|
||||
selects = await this.getFilesUrl(selects, `${base.getStorage("token").token_type} ${base.getStorage("token").access_token}`);
|
||||
const token = base.getStorage("token");
|
||||
if (!token || !token.token_type || !token.access_token) {
|
||||
return message.error("提示:<br/>请先登录网盘~");
|
||||
}
|
||||
selects = await this.getFilesUrl(selects, `${aliyunToken.token_type} ${aliyunToken.access_token}`);
|
||||
} else {
|
||||
return message.error("提示:<br/>页面错误~");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user