mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
try fix account setting rewrite
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -46,11 +46,12 @@ QueryGetAPI<string>(BASE_API_URL + 'vtsuru/version')
|
||||
QueryGetAPI<string>(BASE_API_URL + 'vtsuru/version').then((keepCheckData) => {
|
||||
if (keepCheckData.code == 200 && keepCheckData.data != currentVersion) {
|
||||
isHaveNewVersion = true
|
||||
currentVersion = version.data
|
||||
currentVersion = keepCheckData.data
|
||||
localStorage.setItem('Version', currentVersion)
|
||||
console.log('[vtsuru] 发现新版本: ' + currentVersion)
|
||||
const route = useRoute()
|
||||
if (!route.path.startsWith('/obs')) {
|
||||
|
||||
//@ts-expect-error 这里获取不了
|
||||
if (!window.obsstudio) {
|
||||
const n = notification.info({
|
||||
title: '发现新的版本更新',
|
||||
content: '是否现在刷新?',
|
||||
|
||||
Reference in New Issue
Block a user