猿问

vue路由返回问题

我从/audit ==> /auditlist
但是从/auditlist $router.back(-1) 却返回到了 / 就是默认的首页,请问什么毛病

     routes: [
        {          path: '',          component: Home,          children: [
            {              path: '/',              component: Explorer,              name: "Explorer"
            },
            {              path: '/audit',              component: Audit,              name: "Audit",
            },
            {              path: '/auditlist',              component: AuditList,              name: "AuditList"
            },
          ]
        },
        {          path:'/login',          component: Login,          name: "Login",
        }
      ]


精慕HU
浏览 976回答 1
1回答

凤凰求蛊

怎么执行/audit ==> /auditlistreplace的话就回不去的
随时随地看视频慕课网APP

相关分类

Vue.js
我要回答