fix: 将等待复制的内容data重命名为text
This commit is contained in:
parent
8dac856258
commit
269d65ff98
|
|
@ -549,7 +549,7 @@ export default function ChatPage() {
|
|||
</DevDialog>
|
||||
|
||||
{/* MARK: 开发测试:iframe 通信功能测试面板 */}
|
||||
<IframeTestPanel />
|
||||
{/* <IframeTestPanel /> */}
|
||||
</div>
|
||||
</ThreadContext.Provider>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue