Commit 654802b04f70cc49ef2266a42c52cf97e7d18dc8
Merge branch 'fix/DEFECT-1303' into 'main_dev'
fix: 修复可视化管理分享链接复制失效 See merge request yunteng/thingskit-front!627
Showing
3 changed files
with
3 additions
and
3 deletions
... | ... | @@ -167,7 +167,7 @@ |
167 | 167 | return `${origin}${configurationPrefix}/?${searchParams.toString()}`; |
168 | 168 | }; |
169 | 169 | |
170 | - const { copied, copy } = useClipboard(); | |
170 | + const { copied, copy } = useClipboard({ legacy: true }); | |
171 | 171 | const handleCreateShareUrl = async (record: ConfigurationCenterItemsModal) => { |
172 | 172 | if (!unref(getShareFlag)) return; |
173 | 173 | const url = createShareUrl(record); | ... | ... |
... | ... | @@ -182,7 +182,7 @@ |
182 | 182 | return userStore.getUserInfo.roles![0] !== RoleEnum.CUSTOMER_USER; |
183 | 183 | }); |
184 | 184 | |
185 | - const { copied, copy } = useClipboard(); | |
185 | + const { copied, copy } = useClipboard({ legacy: true }); | |
186 | 186 | const handleCreateShareUrl = async (record: BigScreenCenterItemsModel) => { |
187 | 187 | await copy(createShareUrl(record)); |
188 | 188 | if (unref(copied)) { | ... | ... |
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | return `${origin}${DATA_BOARD_SHARE_URL(id, publicId)}`; |
88 | 88 | }; |
89 | 89 | |
90 | - const { copied, copy } = useClipboard(); | |
90 | + const { copied, copy } = useClipboard({ legacy: true }); | |
91 | 91 | const handleCopyShareUrl = async (record: DataBoardRecord) => { |
92 | 92 | await copy(createShareUrl(record)); |
93 | 93 | unref(copied) ? createMessage.success('复制成功') : createMessage.error('未找到分享链接'); | ... | ... |