feat 学习任务选择页面-创建/更新/删除任务
This commit is contained in:
@@ -4,6 +4,7 @@ import Study from "@/components/Study.vue";
|
||||
import Welcome from "@/components/Welcome.vue";
|
||||
import Review from "@/components/Review.vue";
|
||||
import StartTask from "@/components/StartTask.vue";
|
||||
import TaskForm from "@/components/TaskForm.vue";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
@@ -31,6 +32,22 @@ const router = createRouter({
|
||||
{
|
||||
path:'/start-task',
|
||||
component: StartTask
|
||||
},
|
||||
{
|
||||
path:'/add-task',
|
||||
name:'add-task',
|
||||
component: TaskForm,
|
||||
meta:{
|
||||
action: 'add', buttonText: '添加'
|
||||
}
|
||||
},
|
||||
{
|
||||
path:'/update-task/:taskId',
|
||||
name:'update-task',
|
||||
component: TaskForm,
|
||||
meta:{
|
||||
action: 'update', buttonText: '更新'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user