左侧菜单栏

279 阅读1分钟

一、在main.js中引入路由,代码如下:

main.js中引入路由 import router

在App.vue中,添加跳转路由,代码如下:

引入左侧路由组件 app.vue 添加挑战左侧路由

三、左侧导航菜单栏组件中

配置,代码如下:

el-menu-item el-menu

四、在index.js中配置路由,代码如下:

在index.js配置路由跳转

routes path name component