VUE设置路由
2020-05-06 本文已影响0人
KC莲
安装vue-router插件
npm install --save vue-router
创建路由配置文件

内容大致如下
const routes = [
{
path: '/',
component: () => import('@/views/home')
},
];
export default router;
npm install --save vue-router
内容大致如下
const routes = [
{
path: '/',
component: () => import('@/views/home')
},
];
export default router;