Skip to content

Commit ab239ea

Browse files
committed
fix(chat): Repair the copy button function does not work in the case of http
1 parent 4923dbb commit ab239ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frontend/src/views/chat/chat-block/ChartBlock.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const props = withDefaults(
4040
}
4141
)
4242
43-
const { copy } = useClipboard()
43+
const { copy } = useClipboard({ legacy: true })
4444
const loading = ref<boolean>(false)
4545
const { t } = useI18n()
4646
const addViewRef = ref(null)

frontend/src/views/system/embedded/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { useI18n } from 'vue-i18n'
2020
import { cloneDeep } from 'lodash-es'
2121
2222
const { t } = useI18n()
23-
const { copy } = useClipboard()
23+
const { copy } = useClipboard({ legacy: true })
2424
2525
const keywords = ref('')
2626
const activeStep = ref(0)

frontend/src/views/system/user/User.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ import { ClickOutside as vClickOutside } from 'element-plus-secondary'
379379
import icon_warning_filled from '@/assets/svg/icon_warning_filled.svg'
380380
import { useClipboard } from '@vueuse/core'
381381
382-
const { copy } = useClipboard()
382+
const { copy } = useClipboard({ legacy: true })
383383
384384
const { t } = useI18n()
385385
const keyword = ref('')

0 commit comments

Comments
 (0)