我的System.ServiceProcess
组件的路由有效(see here),而我的Login.vue
组件的路由无效(see here)。为什么?
路由器配置文件(src / router / index.js):
SignUp.vue
HTML根文件(index.html):
import Vue from 'vue';
import Home from '../components/Home.vue';
import SignUp from '../components/SignUp.vue';
import Login from '../components/Login.vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
component: Home
},
{
path: '/login',
component: Login
},
{
path: 'signup',
component: SignUp
},
]
});
答案 0 :(得分:0)
将path: 'signup',
更改为path: '/signup',