import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件
// import login from "./pages/login/login.vue";
// import startLearning from "./pages/startLearning/startLearning.vue";

// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);

const routes = [
    {
        path:"/pages/login/login.vue",
        component: login
    },
    {
        path: "/pages/startLearning/startLearning.vue",
        component: startLearning
    }
]

var router =  new VueRouter({
    routes
})
export default router;