feat: UI: move account releated code to header.vue (#84)

This commit is contained in:
Dream Hunter
2024-03-31 16:16:15 +08:00
committed by GitHub
parent ce7430393e
commit a8e961caf4
5 changed files with 168 additions and 147 deletions

View File

@@ -13,6 +13,7 @@ export const useGlobalState = createGlobalState(
}]
})
const settings = ref({
fetched: false,
address: '',
auto_reply: {
subject: '',
@@ -29,6 +30,7 @@ export const useGlobalState = createGlobalState(
const jwt = useStorage('jwt', '');
const localeCache = useStorage('locale', 'zhCN');
const themeSwitch = useStorage('themeSwitch', false);
const showLogin = ref(false);
return {
loading,
settings,
@@ -40,6 +42,7 @@ export const useGlobalState = createGlobalState(
themeSwitch,
adminAuth,
showAdminAuth,
showLogin,
}
},
)