1、打开一个vue项目,可以看到router文件下有两个文件。如图
2、打开report.js文件,然后在report.js文件设置报表路由为数组。如图
3、回到index.js文件,使用坡纠课柩import引入report路由文件,然后使用es6的合并数组功能,把report路由合并到index路由里面。如图
时间:2024-10-12 01:47:21
1、打开一个vue项目,可以看到router文件下有两个文件。如图
2、打开report.js文件,然后在report.js文件设置报表路由为数组。如图
3、回到index.js文件,使用坡纠课柩import引入report路由文件,然后使用es6的合并数组功能,把report路由合并到index路由里面。如图