路由分为视图页(views),窗口页(pages)

# 路由模式

# 默认路由

/src/router/routes/{pages,views}.js文件下添加即可,如:

// views.js

export default [
	{
		path: '/',
		component: () => import('@/Home.vue')
	},
	{
		path: '/analysis',
		name: '统计分析',
		component: () => import('@/views/analysis/index.vue')
	}
];