From f410e5b6f4c3db553c6ab981790515ef920db9f4 Mon Sep 17 00:00:00 2001 From: tiantian <1012874180@qq.com> Date: Tue, 7 Jan 2025 16:57:29 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=86=85=E7=BD=91=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/chat.scss | 1 - .../src/components/localchat/LocalChat.vue | 20 +++++++++++++++++-- frontend/src/main.ts | 4 ++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/frontend/src/assets/chat.scss b/frontend/src/assets/chat.scss index a387e2e..3a8e140 100644 --- a/frontend/src/assets/chat.scss +++ b/frontend/src/assets/chat.scss @@ -108,7 +108,6 @@ @media screen and (max-width: 768px) { .chat-bot{ .input-area{ - width: 90%; .file-btn{ margin-left: vw(-20); } diff --git a/frontend/src/components/localchat/LocalChat.vue b/frontend/src/components/localchat/LocalChat.vue index ebf1f80..7acc398 100644 --- a/frontend/src/components/localchat/LocalChat.vue +++ b/frontend/src/components/localchat/LocalChat.vue @@ -3,10 +3,16 @@ - + + + + + + + @@ -18,10 +24,11 @@ import { onMounted } from "vue"; import { useAiChatStore } from "@/stores/aichat"; import { useLocalChatStore } from "@/stores/localchat"; +import { isMobileDevice } from "@/util/device"; const store = useLocalChatStore(); const aiStore = useAiChatStore(); - +const showLeft = ref(false) //let source:any; onMounted(async () => { await store.init() @@ -85,5 +92,14 @@ onMounted(async () => { .chat-box { height: 100%; } + + .van-button { + position: absolute; + right: 0; + top: 50%; + transform: translateX(-50%); + z-index: 1; + + } } \ No newline at end of file diff --git a/frontend/src/main.ts b/frontend/src/main.ts index b9bc522..3107ca1 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -9,7 +9,7 @@ import "./assets/windows10.scss" import { i18n } from "./i18n/index.ts" import pinia from "./stores/index.ts" import router from "./system/router" -import { NavBar } from "vant" +import Vant from "vant" import "vant/lib/index.css" const app = createApp(App) @@ -17,7 +17,7 @@ app.use(router) app.use(ElementPlus) app.use(pinia) app.use(i18n) -app.use(NavBar) +app.use(Vant) app.use(screenShort, { enableWebRtc: true }) for (const [key, component] of Object.entries(ElementPlusIconsVue)) {