fix: 将等待复制的内容data重命名为text
This commit is contained in:
parent
8dac856258
commit
269d65ff98
|
|
@ -549,7 +549,7 @@ export default function ChatPage() {
|
||||||
</DevDialog>
|
</DevDialog>
|
||||||
|
|
||||||
{/* MARK: 开发测试:iframe 通信功能测试面板 */}
|
{/* MARK: 开发测试:iframe 通信功能测试面板 */}
|
||||||
<IframeTestPanel />
|
{/* <IframeTestPanel /> */}
|
||||||
</div>
|
</div>
|
||||||
</ThreadContext.Provider>
|
</ThreadContext.Provider>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export async function copyToClipboard(text: string): Promise<void> {
|
||||||
const isInIframe = window.self !== window.top;
|
const isInIframe = window.self !== window.top;
|
||||||
const message = {
|
const message = {
|
||||||
type: "copyToClipboard",
|
type: "copyToClipboard",
|
||||||
data: text,
|
text,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isInIframe && window.parent) {
|
if (isInIframe && window.parent) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue