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

Update Header.vue

上级 1e9f7fcd
......@@ -119,9 +119,9 @@ function handleBlurTitle () {
isEditTitle.value = false
emits('update-query', editTitle.value)
}
async function handleUpdateOpenState (state) {
const { data } = await useRequest(`/v1/chat/${state.id}/public/${state}`, { method: 'post' })
if (data.value) isOpen.value = state
async function handleUpdateOpenState (s) {
const { data } = await useRequest(`/v1/chat/${state.id}/public/${s}`, { method: 'post' })
if (data.value) isOpen.value = s
}
function handleCopyLink (url) {
useCopyToClipboard().copy(url || window.location.href)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册