update sidebar and episode router
This commit is contained in:
1 parent
f418ed47da
commit
1eb713aaf4
7 files changed
+174
-60
No files matched your search
+3
-2
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user