首页 > 技术文章 > vue项目怎么新增页面

lilililiwang 原文

1.在src文件夹下新建页面文件夹

2.在页面文件夹中新建index.vue

3.在router中配置路由

import index from "@/components/text/index";
{
path: '/text/index',
name: 'index',
component: index
},

推荐阅读