hookehuyr

fix(profile): 替换社区链接为未开放提示

修复活动页面加载完成后文本显示问题
......@@ -11,7 +11,7 @@
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
:finished-text="finishText"
@load="onLoad"
class="px-4 py-3"
>
......@@ -47,6 +47,7 @@ const loading = ref(false)
const finished = ref(false)
const page = ref(0)
const pageSize = 10
const finishText = ref('没有更多了');
// 加载活动数据
const onLoad = async () => {
......@@ -66,6 +67,7 @@ const onLoad = async () => {
} else {
page.value += 1
}
finishText.value = '';
} catch (error) {
console.error('加载活动数据失败:', error)
} finally {
......
......@@ -179,7 +179,10 @@ const handleLogout = () => {
// Handle menu item click
const handleMenuClick = (path) => {
if (path === '/profile/community') {
window.location.href = 'https://community.mlaj.com';
// window.location.href = 'https://community.mlaj.com';
showToast('功能暂未开放')
} else if(path === '/profile/activities') {
showToast('功能暂未开放')
} else {
router.push(path);
}
......