改进 输入
This commit is contained in:
parent
629ae9300f
commit
0bcb10c810
@ -175,6 +175,8 @@
|
||||
class="text-center block mt-2 mb-2 text-sm select-none"
|
||||
>
|
||||
AI 也有可能犯错误,请在使用之前核查信息。
|
||||
<br />
|
||||
测试版本,不代表最终品质。
|
||||
</n-text>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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!)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user