vue-router 起步步骤详解 1.在main.js中导入vue-router和组件importVueRouterfrom'vue-router';//导入vue-router并将它命名为VueRouterimp 起步