fix: 修复env更新title后,store不更新

master
xzz2021 9 months ago
parent f10cf798e5
commit 319cdd1820

@ -328,6 +328,8 @@ export const useAppStore = defineStore('app', {
valueLight: 'light'
})
isDark.value = this.getIsDark
const newTitle = import.meta.env.VITE_APP_TITLE
newTitle !== this.getTitle && this.setTitle(newTitle)
}
},
persist: true

Loading…
Cancel
Save