声明:我使用的是yarn ,安装的是vue UI这个包。 1.添加 vue-router的包 $ yarn add vue-router --save 2.命令行所以要手动添加文件 3. 使用: 相关文章: