This commit is contained in:
yixu
2025-09-14 19:15:51 +08:00
parent e26aae5805
commit ac5d579a8c
3 changed files with 25 additions and 23 deletions

View File

@@ -77,7 +77,8 @@ let mergeId = '';
// 切换边框状态
const toggleBorder = (item, index) => {
activeBorders.value = activeBorders.value.map(() => false);
// 如果没有打榜点击切换图片时把当前背景图赋值给globalStore.result_url做为最新的背景图
globalStore.result_url = item.result_url;
activeBorders.value[index] = true;
mergeId = item.id;
};
@@ -95,6 +96,7 @@ const handleDabangClick = () => {
.then(response => response.json())
.then(data => {
ElMessage.success('打榜成功!');
displayZhuli.value = true;
console.log('Success:', data);
globalStore.chartsBattle = true;
return { success: true, data };