fix: 将等待复制的内容data重命名为text

This commit is contained in:
肖应宇 2026-03-23 14:05:14 +08:00
parent 8dac856258
commit 269d65ff98
2 changed files with 2 additions and 2 deletions

View File

@ -549,7 +549,7 @@ export default function ChatPage() {
</DevDialog>
{/* MARK: 开发测试iframe 通信功能测试面板 */}
<IframeTestPanel />
{/* <IframeTestPanel /> */}
</div>
</ThreadContext.Provider>
);

View File

@ -19,7 +19,7 @@ export async function copyToClipboard(text: string): Promise<void> {
const isInIframe = window.self !== window.top;
const message = {
type: "copyToClipboard",
data: text,
text,
};
if (isInIframe && window.parent) {