fix auth page redirect

This commit is contained in:
2024-04-05 23:18:43 +08:00
parent 2a2895802f
commit 759a9f2c4e
6 changed files with 322 additions and 48 deletions

View File

@@ -160,11 +160,11 @@ const renderOption = ({ node, option }: { node: any; option: SelectOption }) =>
)
}
function gotoAuthPage() {
if (!accountInfo.value?.biliUserAuthInfo) {
/*if (!accountInfo.value?.biliUserAuthInfo) {
message.error('你尚未进行 Bilibili 认证, 请前往面板进行认证和绑定')
return
}
/*useAuthStore()
useAuthStore()
.setCurrentAuth(accountInfo.value?.biliUserAuthInfo.token)
.then(() => {
NavigateToNewTab('/bili-user')