From 49a55c6c26bf6a313c585e41696b24c89d31e6ab Mon Sep 17 00:00:00 2001 From: yuk255 Date: Thu, 9 Oct 2025 14:52:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/userCenter.ts | 9 +++++++++ src/components/layout/AppHeader.vue | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/api/modules/userCenter.ts diff --git a/src/api/modules/userCenter.ts b/src/api/modules/userCenter.ts new file mode 100644 index 0000000..cec13d3 --- /dev/null +++ b/src/api/modules/userCenter.ts @@ -0,0 +1,9 @@ +// 学员中心相关API接口 +import { ApiRequest } from '../request' + + +export class ActivityListApi { + static async getActivityList(): Promise { + return ApiRequest.get('/aiol/aiolActivity/list') + } +} diff --git a/src/components/layout/AppHeader.vue b/src/components/layout/AppHeader.vue index 3fdf8aa..c7ccf1b 100644 --- a/src/components/layout/AppHeader.vue +++ b/src/components/layout/AppHeader.vue @@ -642,7 +642,7 @@ const handleUserMenuSelect = (key: string) => { case 'courses': // 跳转到我的课程 router.push('/profile/courses').then(() => { - window.location.reload(); + // window.location.reload(); }) break case 'purchase': @@ -658,7 +658,7 @@ const handleUserMenuSelect = (key: string) => { case 'profile': router.push('/profile').then(() => { // 检查sessionStorage中是否已有刷新标志 - window.location.reload(); + // window.location.reload(); }) break case 'teacher':