try fix account setting rewrite

This commit is contained in:
2024-04-20 01:28:42 +08:00
parent df1e75caa5
commit 2f306430b1
2 changed files with 10 additions and 4 deletions

View File

@@ -18,7 +18,12 @@ export async function GetSelfAccount() {
if (cookie.value) {
const result = await Self()
if (result.code == 200) {
ACCOUNT.value = result.data
if (!ACCOUNT.value) {
ACCOUNT.value = result.data
} else {
result.data.settings = ACCOUNT.value.settings
ACCOUNT.value = result.data
}
isLoadingAccount.value = false
//console.log('[vtsuru] 已获取账户信息')
if (!isSameDay(new Date(), cookieRefreshDate.value)) {