|
@@ -21,13 +21,13 @@ const router = createRouter({
|
21
|
21
|
})
|
22
|
22
|
|
23
|
23
|
|
24
|
|
-router.beforeEach(function(to, from, next) {
|
25
|
|
- if (!localStorage.getItem("myAdminToken")) {
|
26
|
|
- if (to.path !== '/login') {
|
27
|
|
- return next('/login')
|
28
|
|
- }
|
29
|
|
- }
|
30
|
|
- next()
|
31
|
|
-})
|
|
24
|
+// router.beforeEach(function(to, from, next) {
|
|
25
|
+// if (!localStorage.getItem("myAdminToken")) {
|
|
26
|
+// if (to.path !== '/login') {
|
|
27
|
+// return next('/login')
|
|
28
|
+// }
|
|
29
|
+// }
|
|
30
|
+// next()
|
|
31
|
+// })
|
32
|
32
|
|
33
|
33
|
export default router
|