commit current frontend

此提交包含在:
2021-08-01 23:51:52 +08:00
父節點 c2e4a97373
當前提交 b839c99028
共有 25 個檔案被更改,包括 1765 行新增0 行删除

查看文件

@@ -0,0 +1,41 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Textbook from "@/views/Textbook"
import Section from "@/views/Section"
import Exercise from "@/views/Exercise"
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/textbook/:textbook?',
name: 'textbook',
component: Textbook,
props: true
},
{
path: '/textbook/:textbook/section/:section',
name: 'section',
component: Section,
props: true
},
{
path: '/textbook/:textbook/section/:section/exercise/:exercise',
name: 'exercise',
component: Exercise,
props: true
}
]
const router = new VueRouter({
mode: "history",
routes: [...routes],
})
export default router