perf: 支持AI分析报错

This commit is contained in:
xiaojunnuo
2025-05-14 15:03:47 +08:00
parent abf015f485
commit aa96859798
8 changed files with 67 additions and 188 deletions
+8 -4
View File
@@ -74,8 +74,12 @@ const tokenTheme = computed(() => {
// settingStore.init();
const chatBox = ref();
onMounted(async () => {
// await util.sleep(5000);
// await chatBox.value.openChat({ q: "hello" });
});
// onMounted(async () => {
// await util.sleep(2000);
// await chatBox.value.openChat({ q: "hello" });
// });
const openChat = (q: string) => {
chatBox.value.openChat({ q });
};
provide("fn:ai.open", openChat);
</script>