update sidebar and episode router

This commit is contained in:
AceDataCloud committed 2022-04-02 00:17:17 +08:00
1 parent f418ed47da
commit 1eb713aaf4
7 files changed
+174 -60

No files matched your search

+3 -2
View File
@@ -16,12 +16,13 @@ const routes = [
];
const router = createRouter({
history: createWebHistory(),
// history: createWebHashHistory(),
// history: createWebHistory(),
history: createWebHashHistory(),
routes
});
router.beforeEach((to, from, next) => {
console.log(to);
if (to.matched.some((record) => record.meta.auth)) {
if (!store.getters.authenticated) {
next({