From 6423161488bde9af6259abd1118d7b5606678f70 Mon Sep 17 00:00:00 2001 From: awinx Date: Sun, 12 Jan 2025 00:38:54 +0800 Subject: [PATCH] final --- README.md | 15 ++++-- src/App.vue | 14 ++++-- src/router/index.js | 6 +++ src/views/score/scoreView.vue | 91 +++++++++++++++++++++++++++++++++++ 4 files changed, 117 insertions(+), 9 deletions(-) create mode 100644 src/views/score/scoreView.vue diff --git a/README.md b/README.md index db13e7e..8c220e0 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,35 @@ -<<<<<<< HEAD + # student-information-sys-front 学生信息管理系统的前端工程。 -======= +============================ + # student-information-sys ## Project setup + ``` pnpm install ``` ### Compiles and hot-reloads for development + ``` pnpm run serve ``` ### Compiles and minifies for production + ``` pnpm run build ``` ### Lints and fixes files + ``` pnpm run lint ``` -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). ->>>>>>> 5ea95bc (init) +### 后端接口配置 + +修改文件src/apiConfig.js中的apiUrl,空字符串表示前后端位于同一台服务器。 diff --git a/src/App.vue b/src/App.vue index 1026311..76e6dc7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,13 +22,19 @@ 课程信息 - + - - 教师信息 + + 课程信息 - + + + + 学分信息 + + + 退出登录 diff --git a/src/router/index.js b/src/router/index.js index 029f97d..453ca46 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,6 +32,12 @@ const routes = [ name: 'teacher', component: () => import('../views/teacher/teacherList.vue'), meta: { requiresAuth: true } + }, + { + path: '/score', + name: 'score', + component: () => import('../views/score/scoreView.vue'), + // meta: { requiresAuth: true } } ] diff --git a/src/views/score/scoreView.vue b/src/views/score/scoreView.vue new file mode 100644 index 0000000..a088824 --- /dev/null +++ b/src/views/score/scoreView.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file