fix:修复报错
This commit is contained in:
parent
68f3652935
commit
49a55c6c26
9
src/api/modules/userCenter.ts
Normal file
9
src/api/modules/userCenter.ts
Normal file
@ -0,0 +1,9 @@
|
||||
// 学员中心相关API接口
|
||||
import { ApiRequest } from '../request'
|
||||
|
||||
|
||||
export class ActivityListApi {
|
||||
static async getActivityList(): Promise<any> {
|
||||
return ApiRequest.get('/aiol/aiolActivity/list')
|
||||
}
|
||||
}
|
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user