panhui 3 lat temu
rodzic
commit
2082ab9a0c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/router/index.js

+ 2 - 1
src/router/index.js

@@ -811,7 +811,7 @@ const routes = [
         meta: {}
     },
     {
-        padth: '/rank',
+        path: '/rank',
         name: 'rank',
         component: () => import('../views/user/Rank.vue'),
         meta: {}
@@ -946,6 +946,7 @@ const router = createRouter({
 });
 
 router.beforeEach((to, from, next) => {
+    console.log(to);
     if (/^\/http/.test(to.path)) {
         let url = to.path.replace('/', '');
         let params = [];