vue筆記5——用vue-cli開發第一個項目

構建一個簡單的vue導航欄菜單實例 1、新建組件文件夾(pages)及文件(index、userCenter、userInfo) index.vue代碼 userCenter.vue代碼: userInfo.vue代碼: 2、在路由配置文件中,導入新建的組件(index.js我們不用了) 3、在項目入口App.vue中建立導航欄 4、修改main.js 將import router from '.
相關文章
相關標籤/搜索