mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-05 11:47:32 +00:00
fix chat
This commit is contained in:
@@ -47,14 +47,12 @@
|
|||||||
" required></textarea>
|
" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between px-2 py-2 border-t border-gray-200">
|
<div class="flex justify-between px-2 py-2 border-t border-gray-200">
|
||||||
<form>
|
<select id="countries" v-model="commandMode"
|
||||||
<select id="countries" v-model="commandMode"
|
class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg block">
|
||||||
class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg block">
|
<option selected :value="'execute'">指令模式</option>
|
||||||
<option selected :value="'chat'">询问模式</option>
|
<option :value="'search'">搜索模式</option>
|
||||||
<option :value="'execute'">指令模式</option>
|
<option :value="'chat'">询问模式</option>
|
||||||
<option :value="'search'">搜索模式</option>
|
</select>
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
<Button :abortable="true" :isLoading="isLoading" :loadingContent="'中止'" :submitContent="'发送'"
|
<Button :abortable="true" :isLoading="isLoading" :loadingContent="'中止'" :submitContent="'发送'"
|
||||||
:handleClick="() => handleSendClick(inputMessage, commandMode)" />
|
:handleClick="() => handleSendClick(inputMessage, commandMode)" />
|
||||||
</div>
|
</div>
|
||||||
@@ -112,7 +110,7 @@ const departmentUpsertModal = ref<ModalInterface>();
|
|||||||
const inputMessage = ref("");
|
const inputMessage = ref("");
|
||||||
const chatContainer = ref<HTMLElement | null>(null);
|
const chatContainer = ref<HTMLElement | null>(null);
|
||||||
const alertStore = useAlertStore();
|
const alertStore = useAlertStore();
|
||||||
const commandMode = ref<"chat" | "search" | "execute">("chat");
|
const commandMode = ref<"chat" | "search" | "execute">("execute");
|
||||||
const userUpsert = useUserUpsert();
|
const userUpsert = useUserUpsert();
|
||||||
const departmentUpsert = useDepartmentUpsert();
|
const departmentUpsert = useDepartmentUpsert();
|
||||||
const userDeleteModal = ref<ModalInterface>();
|
const userDeleteModal = ref<ModalInterface>();
|
||||||
|
|||||||
Reference in New Issue
Block a user