diff --git a/frontend/src/assets/chat.scss b/frontend/src/assets/chat.scss index 3a8e140..7e1f5ce 100644 --- a/frontend/src/assets/chat.scss +++ b/frontend/src/assets/chat.scss @@ -108,11 +108,9 @@ @media screen and (max-width: 768px) { .chat-bot{ .input-area{ + padding: 0; .file-btn{ - margin-left: vw(-20); - } - .websearch-btn{ - margin-left: vw(-5); + margin-left: vw(-10); } } } diff --git a/frontend/src/components/localchat/AiChatMain.vue b/frontend/src/components/localchat/AiChatMain.vue index 8512bd0..003564b 100644 --- a/frontend/src/components/localchat/AiChatMain.vue +++ b/frontend/src/components/localchat/AiChatMain.vue @@ -7,6 +7,7 @@ import { ElScrollbar } from "element-plus"; import { getSystemConfig } from "@/system/config"; import { Vue3Lottie } from "vue3-lottie"; import { file } from "jszip"; +import { isMobileDevice } from "@/util/device"; const chatStore = useAiChatStore(); const modelStore = useModelStore(); const isPadding = ref(false); //是否发送中 @@ -242,7 +243,7 @@ const uploadImage = async (event: any) => { + @keydown="handleKeydown" :autofocus="isMobileDevice() ? false : true" class="ai-input-area" /> diff --git a/frontend/src/components/setting/SetSystem.vue b/frontend/src/components/setting/SetSystem.vue index bafcc7c..0aab062 100644 --- a/frontend/src/components/setting/SetSystem.vue +++ b/frontend/src/components/setting/SetSystem.vue @@ -2,87 +2,54 @@ - + {{ item }} - + 存储方式 - + 存储地址 - + 自定义端口 - + 自定义路径 - + 服务器地址 - + 允许跨域 - + " active-value="1" inactive-value="" /> 服务器地址 - + 登陆用户名 @@ -90,46 +57,30 @@ 登陆密码 - + - + {{ t("confirm") }} - + 编辑器类型 - + 地址 - +