路由文件,配置着 url 路径 和 页面的关系

import Vue from "vue";
import Router from "vue-router";// 引用路由
import Home from "./views/Home.vue";//导入方法1 Home页面

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "home",
      component: Home
    },
    {
      path: "/about",//路径
      name: "about",//名字
      component: () =>
        import(/* webpackChunkName: "about" */ "./views/About.vue")//导入方法2,导入About页面
    }
  ]
});
上一篇:机器学习-57-Unsupervised Learning:More about Auto-Encoder(无监督学习之更多有关自编码器的介绍)


下一篇:Google chrome,对于搜索关键字进行加密,你不知道的隐藏功能这里也有!