改进 输入

This commit is contained in:
ivamp 2024-10-16 21:00:39 +08:00
parent 629ae9300f
commit 0bcb10c810
3 changed files with 4 additions and 17 deletions

View File

@ -175,6 +175,8 @@
class="text-center block mt-2 mb-2 text-sm select-none"
>
AI 也有可能犯错误请在使用之前核查信息
<br />
测试版本不代表最终品质
</n-text>
</div>
</div>

View File

@ -146,15 +146,13 @@ watch(
immediate: true
}
)
// const {copy} = useCopy()
const handleClick = async (e: any) => {
console.log(e.target)
const target: HTMLElement = e.target
if (target.className === 'code-copy-btn') {
const text = e.target.parentElement.nextElementSibling.textContent
// await copy(text)
// copy
// copy text to clipboard
await navigator.clipboard.writeText(text)
}
if (target.className === 'markdown-custom-link') {
emit('click-custom-link', target.textContent!)

View File

@ -101,17 +101,4 @@ const onScroll = (e: Event) => {
</div> -->
</n-layout>
</n-layout>
<n-watermark
content="测试版本,不代表最终品质"
cross
fullscreen
:font-size="16"
:line-height="16"
:width="384"
:height="384"
:x-offset="12"
:y-offset="60"
:rotate="-15"
/>
</template>