mirror of
https://github.com/romancm/gamebrary
synced 2025-02-17 19:48:24 +00:00
remove old route logic
This commit is contained in:
parent
08a6411958
commit
08f1b5a15c
1 changed files with 4 additions and 8 deletions
12
src/main.js
12
src/main.js
|
@ -42,15 +42,11 @@ if (process.env.NODE_ENV !== 'development') {
|
|||
Vue.config.productionTip = false;
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.meta.requiresAuth && !store.getters.auth) {
|
||||
next('/');
|
||||
} else {
|
||||
if (to.meta && to.meta.title) {
|
||||
document.title = `${to.meta.title} - Gamebrary`;
|
||||
}
|
||||
|
||||
next();
|
||||
if (to.meta && to.meta.title) {
|
||||
document.title = `${to.meta.title} - Gamebrary`;
|
||||
}
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
const vuexStorage = localStorage && localStorage.vuex
|
||||
|
|
Loading…
Add table
Reference in a new issue