单页面搭建后台模板

router => index.js

import Vue from 'vue'
import Router from 'vue-router'
import TOP from '@/components/top.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      components:{
        top:TOP,
        bottom:()=> import ('../components/bottom.vue')
      }
    },
    {
      path:'/b2',
      components:{
        top:TOP,
        bottom:()=> import('../components/bottom2.vue')
      }
    }
  ]
})

 架构:单页面搭建后台模板_第1张图片



  bottom2 && bottom

 


  效果图:

 

转载于:https://www.cnblogs.com/ZaraNet/p/9939467.html

你可能感兴趣的:(单页面搭建后台模板)