fix: 分享地址固定为海外地址

This commit is contained in:
Gsh
2025-11-02 00:55:47 +08:00
parent 114b41144e
commit 927e9df7de

View File

@@ -109,7 +109,7 @@ watch(
}, 500);
}
},
{ immediate: true }
{ immediate: true },
);
// ============ 新增:初始洗牌动画 ============
@@ -773,9 +773,11 @@ function copyInviteCode() {
*/
function generateShareLink(): string {
const inviteCode = taskData.value?.myInviteCode;
if (!inviteCode) return '';
if (!inviteCode)
return '';
const baseUrl = window.location.origin;
// const baseUrl = window.location.origin;
const baseUrl = 'https://yxai.chat';
const path = window.location.pathname;
return `${baseUrl}${path}?inviteCode=${inviteCode}`;
}
@@ -1158,7 +1160,9 @@ function getCardClass(record: CardFlipRecord): string[] {
💌 分享给好友好友使用后可解锁最后3次翻牌机会
</p>
<div class="share-preview">
<div class="share-preview-title">📱 分享预览</div>
<div class="share-preview-title">
📱 分享预览
</div>
<div class="share-preview-content">
{{ generateShareContent() }}
</div>