Merge branch 'main' into fix/macos-window-scaling

This commit is contained in:
Wendong-Fan 2025-08-22 20:32:28 +08:00 committed by GitHub
commit c97adda583

View file

@ -6,7 +6,7 @@ export const share = async (taskId: string) => {
const res = await proxyFetchPost(`/api/chat/share`, {
task_id: taskId,
});
const shareLink = `https://www.eigent.ai/download?share_token=${res.share_token}__${taskId}`;
const shareLink = `${import.meta.env.VITE_USE_LOCAL_PROXY === "true" ? 'eigent://callback' : 'https://www.eigent.ai/download'}?share_token=${res.share_token}__${taskId}`;
navigator.clipboard
.writeText(shareLink)
.then(() => {