feat: add admin panel (#31)

* feat: add admin panel

* feature: update limit
This commit is contained in:
Dream Hunter
2023-10-09 10:03:15 -05:00
committed by GitHub
parent 0f74bde850
commit 5cfc78d70d
15 changed files with 343 additions and 10 deletions
+5 -1
View File
@@ -13,7 +13,9 @@ export const useGlobalState = createGlobalState(
}]
})
const showAuth = ref(false);
const showAdminAuth = ref(false);
const auth = useStorage('auth', '');
const adminAuth = useStorage('adminAuth', '');
const jwt = useStorage('jwt', '');
const localeCache = useStorage('locale', 'zhCN');
const themeSwitch = useStorage('themeSwitch', false);
@@ -24,7 +26,9 @@ export const useGlobalState = createGlobalState(
auth,
jwt,
localeCache,
themeSwitch
themeSwitch,
adminAuth,
showAdminAuth,
}
},
)