From e8da2ee3f8a82e270f35fbb3007c32e204052054 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Wed, 8 Apr 2026 16:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesingle-aicreate-client/src/utils/bridge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lesingle-aicreate-client/src/utils/bridge.js b/lesingle-aicreate-client/src/utils/bridge.js index 1c76607..e75094f 100644 --- a/lesingle-aicreate-client/src/utils/bridge.js +++ b/lesingle-aicreate-client/src/utils/bridge.js @@ -4,7 +4,7 @@ */ import config from './config' // const VITE_CREATE_POST_MESSAGE_URL = import.meta.env.VITE_CREATE_POST_MESSAGE_URL; -const VITE_AI_POST_MESSAGE_URL = location.origin; +const VITE_CREATE_POST_MESSAGE_URL = location.origin; const SOURCE = 'leai-creation' const VERSION = 1 const TIMEOUT = 30000 @@ -18,7 +18,7 @@ const targetOrigin = config.parentOrigins.length > 0 ? config.parentOrigins[0] : export function send(type, payload = {}) { if (!isEmbedded) return - window.parent.postMessage({ source: SOURCE, version: VERSION, type, payload }, VITE_AI_POST_MESSAGE_URL) + window.parent.postMessage({ source: SOURCE, version: VERSION, type, payload }, VITE_CREATE_POST_MESSAGE_URL) } export function request(type, payload = {}) { if (!isEmbedded) return Promise.reject(new Error('Not in iframe'))