From 68c64a96c1f6e65d87891a42b386dbd1d3b4c2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=A0?= <2091066548@qq.com> Date: Tue, 16 Sep 2025 18:52:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=8A=A5=E9=94=99=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=8C=E7=BB=83=E4=B9=A0=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/system.ts | 2 +- src/utils/maintenanceGuard.ts | 2 +- src/views/CourseExchanged.vue | 1575 ++++++++++++++++++++++++++++++++- 3 files changed, 1557 insertions(+), 22 deletions(-) diff --git a/src/api/modules/system.ts b/src/api/modules/system.ts index fd85873..6972d58 100644 --- a/src/api/modules/system.ts +++ b/src/api/modules/system.ts @@ -1,4 +1,4 @@ -import { request } from '../request' +import request from '../request' import type { ApiResponse } from '../types' export interface SystemSettings { diff --git a/src/utils/maintenanceGuard.ts b/src/utils/maintenanceGuard.ts index d8adca5..bb5638f 100644 --- a/src/utils/maintenanceGuard.ts +++ b/src/utils/maintenanceGuard.ts @@ -34,7 +34,7 @@ export const isAdminRoute = (path: string): boolean => { /** * 路由守卫:检查网站维护状态 */ -export const maintenanceGuard = (to: any, from: any, next: any) => { +export const maintenanceGuard = (to: any, _from: any, next: any) => { const siteEnabled = isSiteEnabled() const isAdmin = isAdminRoute(to.path) diff --git a/src/views/CourseExchanged.vue b/src/views/CourseExchanged.vue index 32932ed..304838b 100644 --- a/src/views/CourseExchanged.vue +++ b/src/views/CourseExchanged.vue @@ -30,9 +30,9 @@
-
- -