|
|
|
@ -234,6 +234,7 @@ function onCopyChat(idx:number){ |
|
|
|
let el = document.querySelector('#content'+idx) as HTMLElement | null; |
|
|
|
let content = el?.innerText; |
|
|
|
if(!navigator.clipboard) alert("clipboard 不可用") |
|
|
|
|
|
|
|
navigator.clipboard.writeText(content as string) |
|
|
|
} |
|
|
|
|
|
|
|
@ -277,16 +278,16 @@ onMounted(() => { |
|
|
|
if(userStore.userInfoCont == ""){ |
|
|
|
userStore.getInfo().then(()=>{ |
|
|
|
userid.value="p0"+userStore.userInfoCont.userId; |
|
|
|
loadKnownLibList() |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
userid.value="p0"+userStore.userInfoCont.userId; |
|
|
|
loadKnownLibList() |
|
|
|
} |
|
|
|
getAiagentList().then(resp=>{ |
|
|
|
agentList.value.push(...resp.data) |
|
|
|
}) |
|
|
|
|
|
|
|
loadKnownLibList() |
|
|
|
|
|
|
|
const query = route.query |
|
|
|
//只是分享链接的请求 |
|
|
|
if (query.shared && query.shared!=""){ |
|
|
|
|