提交 e47efbbc 编写于 作者: View Design's avatar View Design

add

上级 f7b13318
...@@ -3710,8 +3710,6 @@ ...@@ -3710,8 +3710,6 @@
}, },
"node_modules/@parcel/watcher-wasm/node_modules/napi-wasm": { "node_modules/@parcel/watcher-wasm/node_modules/napi-wasm": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmmirror.com/napi-wasm/-/napi-wasm-1.1.0.tgz",
"integrity": "sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==",
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
...@@ -17731,8 +17729,6 @@ ...@@ -17731,8 +17729,6 @@
"dependencies": { "dependencies": {
"napi-wasm": { "napi-wasm": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmmirror.com/napi-wasm/-/napi-wasm-1.1.0.tgz",
"integrity": "sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==",
"bundled": true "bundled": true
} }
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<UButton color="gray" variant="ghost" leading-icon="i-heroicons-plus-20-solid">收藏</UButton> <UButton color="gray" variant="ghost" leading-icon="i-heroicons-plus-20-solid">收藏</UButton>
</div> </div>
<div> <div>
<UButton leading-icon="i-heroicons-share-20-solid">分享</UButton> <UButton @click="handleShare" leading-icon="i-heroicons-share-20-solid">分享</UButton>
</div> </div>
</div> </div>
<UDivider /> <UDivider />
...@@ -135,13 +135,15 @@ const state = reactive({ ...@@ -135,13 +135,15 @@ const state = reactive({
}) })
const isEditTitle = ref(false) const isEditTitle = ref(false)
const titleRef = ref(null) const titleRef = ref(null)
const handleFocusTitle = () => { const handleFocusTitle = () => {
isEditTitle.value = true isEditTitle.value = true
} }
const handleBlurTitle = () => { const handleBlurTitle = () => {
isEditTitle.value = false isEditTitle.value = false
} }
const handleShare = () => {
useCopyToClipboard().copy(window.location.href)
}
const steps = ['', '问题分析', '代码搜索', '整理答案', '完成!'] const steps = ['', '问题分析', '代码搜索', '整理答案', '完成!']
const stepColor = (step) => { const stepColor = (step) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册