Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-01 18:23:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34254433a62e51802f6016c8797f86982eea3774
34254433
1 parent
1c19fc43
fix(MyFavoritesPage): 替换跳转链接为暂无数据提示
使用 vant 的 showToast 替代直接跳转百度,提升用户体验
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/views/profile/MyFavoritesPage.vue
src/views/profile/MyFavoritesPage.vue
View file @
3425443
...
...
@@ -57,6 +57,7 @@ import ActivityCard from '@/components/ui/ActivityCard.vue';
import { courses as mockCourses, activities as mockActivities } from '@/utils/mockData';
import { useTitle } from '@vueuse/core';
import AppLayout from "@/components/layout/AppLayout.vue";
import { showToast } from 'vant';
// 导入接口
import { getGroupFavoriteListAPI } from '@/api/favorite';
...
...
@@ -117,7 +118,9 @@ const onCoursesLoad = async () => {
// 切换标签页
const onClickTab = ({ name, title }) => {
if (name === 'activities') {
location.href = 'http://www.baidu.com'
// location.href = 'http://www.baidu.com'
// 提示暂无数据
showToast('暂无收藏活动')
}
};
</script>
...
...
Please
register
or
login
to post a comment