mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-07 23:31:38 +08:00
feat: UI: move account releated code to header.vue (#84)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user