提交 b5fb3af4 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 0140cc48
...@@ -3,6 +3,8 @@ import { useTextSelection, watchDebounced, useClipboard } from '@vueuse/core' ...@@ -3,6 +3,8 @@ import { useTextSelection, watchDebounced, useClipboard } from '@vueuse/core'
import { useFloating } from '@floating-ui/vue' import { useFloating } from '@floating-ui/vue'
import { useChat } from '@/composables/useChat' import { useChat } from '@/composables/useChat'
const blacklist = ['saas-x.ezijing.com']
const state = useTextSelection() const state = useTextSelection()
const reference = ref(null) const reference = ref(null)
...@@ -13,6 +15,7 @@ const userChatInput = ref('') ...@@ -13,6 +15,7 @@ const userChatInput = ref('')
watchDebounced( watchDebounced(
state.text, state.text,
value => { value => {
if (blacklist.includes(location.hostname)) return
if (value && !dialogVisible.value) { if (value && !dialogVisible.value) {
userChatInput.value = value userChatInput.value = value
floating.value.style.display = 'block' floating.value.style.display = 'block'
...@@ -107,10 +110,10 @@ const { copy, copied } = useClipboard() ...@@ -107,10 +110,10 @@ const { copy, copied } = useClipboard()
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
background: #222; background: #999;
color: white; color: white;
font-weight: bold; font-weight: bold;
padding: 5px; padding: 5px 10px;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
cursor: pointer; cursor: pointer;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论