From f37c1c76afd71fce586c76b51df0292f452f0a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=9E=97=E6=B5=B7?= <1092488524@qq.com> Date: Tue, 3 Dec 2024 21:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue2/vue/src/components/Teacher/Aside.vue | 5 + vue2/vue/src/router/index.js | 6 + vue2/vue/src/views/Teacher/Questions.vue | 149 ++++++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 vue2/vue/src/views/Teacher/Questions.vue diff --git a/vue2/vue/src/components/Teacher/Aside.vue b/vue2/vue/src/components/Teacher/Aside.vue index 3d41f3a..2521f39 100644 --- a/vue2/vue/src/components/Teacher/Aside.vue +++ b/vue2/vue/src/components/Teacher/Aside.vue @@ -26,6 +26,11 @@ 分数中心 + + + 题目中心 + + 批改中心 diff --git a/vue2/vue/src/router/index.js b/vue2/vue/src/router/index.js index b258989..7d86e63 100644 --- a/vue2/vue/src/router/index.js +++ b/vue2/vue/src/router/index.js @@ -8,6 +8,12 @@ import store from '../store'; // 引入 Vuex store Vue.use(VueRouter); const routes = [ + { + path:'/teacher/questions', + name:'Questions', + component: () => import(/* webpackChunkName: "about" */ '../views/Teacher/Questions.vue'), + meta: { requiresAuth: true } + }, { path:'/student/message', name:'Message', diff --git a/vue2/vue/src/views/Teacher/Questions.vue b/vue2/vue/src/views/Teacher/Questions.vue new file mode 100644 index 0000000..48b5cad --- /dev/null +++ b/vue2/vue/src/views/Teacher/Questions.vue @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + 添加题目 + + + + + + + {{ question.title }} + + + + {{ question.content }} + + + + + + + + + +