|
@@ -27,7 +27,7 @@ const emit = defineEmits<{
|
|
|
(event: 'close'): void
|
|
|
}>()
|
|
|
|
|
|
-const webpageUrl = ref('https://v3.cn.vuejs.org/')
|
|
|
+const webpageUrl = ref('https://aichat.cocorobo.cn/#/?id=4e826675-b8e3-44af-9ef3-8cebd302f702&type=agent/')
|
|
|
|
|
|
const insertWebpage = () => {
|
|
|
if (!webpageUrl.value) return message.error('请先输入正确的网页链接')
|
|
@@ -35,7 +35,8 @@ const insertWebpage = () => {
|
|
|
// 简单的URL验证
|
|
|
try {
|
|
|
new URL(webpageUrl.value)
|
|
|
- } catch {
|
|
|
+ }
|
|
|
+ catch {
|
|
|
return message.error('请输入正确的网页链接格式')
|
|
|
}
|
|
|
|