mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-20 01:13:46 +08:00
init assistant
This commit is contained in:
@@ -3,8 +3,6 @@ import { ref } from "vue";
|
||||
import client from "../../api/client";
|
||||
import useAuthStore from "../store/useAuthStore";
|
||||
|
||||
const authStore = useAuthStore();
|
||||
|
||||
export const useAiChat = () => {
|
||||
const messages = ref<
|
||||
{
|
||||
@@ -21,6 +19,7 @@ export const useAiChat = () => {
|
||||
|
||||
const chat = async (message: string) => {
|
||||
isLoading.value = true;
|
||||
const authStore = useAuthStore();
|
||||
const ctrl = new AbortController();
|
||||
currentController = ctrl;
|
||||
messages.value.push({
|
||||
|
||||
Reference in New Issue
Block a user