..
This commit is contained in:
@@ -229,23 +229,15 @@ const navigateToSignUp = () => {
|
||||
// 获取活动详情
|
||||
const getActivityDetail = async (id) => {
|
||||
try {
|
||||
const loading = Toast({
|
||||
message: '加载中...',
|
||||
theme: 'loading',
|
||||
duration: 0
|
||||
});
|
||||
|
||||
const {code, data} = await request.get(`/client/activity/get/${id}`);
|
||||
if (code === 0 && data) {
|
||||
detailData.value = data;
|
||||
} else {
|
||||
Toast({message: '获取活动详情失败', theme: 'error'});
|
||||
// Toast({message: '获取活动详情失败', theme: 'error'});
|
||||
}
|
||||
|
||||
loading.clear();
|
||||
} catch (error) {
|
||||
console.error('获取活动详情错误', error);
|
||||
Toast({message: '获取活动详情失败', theme: 'error'});
|
||||
// Toast({message: '获取活动详情失败', theme: 'error'});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user