feat: Enhance AI Assistant with new actions and context handling

This commit is contained in:
t8y2
2026-04-29 21:32:35 +08:00
parent e2d8820751
commit ccb3667a0c
14 changed files with 1044 additions and 105 deletions
+16
View File
@@ -0,0 +1,16 @@
import { ref } from "vue";
const message = ref("");
const visible = ref(false);
let timer = 0;
export function useToast() {
function toast(msg: string, duration = 2000) {
message.value = msg;
visible.value = true;
clearTimeout(timer);
timer = window.setTimeout(() => { visible.value = false; }, duration);
}
return { message, visible, toast };
}