diff --git a/src/components/settings/AssistantSettings.vue b/src/components/settings/AssistantSettings.vue
index 29bf164..24105e7 100644
--- a/src/components/settings/AssistantSettings.vue
+++ b/src/components/settings/AssistantSettings.vue
@@ -43,7 +43,11 @@
-
+
@@ -121,13 +125,11 @@
{{ c.token }}
-
+
-
+
@@ -135,9 +137,7 @@
-
- 删除后,应用将无法访问此助理。
-
+ 删除后,应用将无法访问此助理。
@@ -187,7 +187,6 @@ import { useDialog } from "naive-ui";
import { TrashBinOutline, SettingsOutline } from "@vicons/ionicons5";
import getApi from "@/plugins/api";
import { useChatStore } from "@/stores/chat";
-import router from "@/router";
import { ref } from "vue";
import {
EntityAssistant,
@@ -196,6 +195,7 @@ import {
EntityLibrary,
EntityTool,
} from "@/api";
+import { useIsMobile } from "@/utils/composables";
const dialog = useDialog();
const chatStore = useChatStore();
@@ -210,6 +210,15 @@ const librarySelects: any = ref([]);
const libraries: Ref = ref([]);
const assistantShares: Ref = ref([]);
+const isMobile = useIsMobile();
+const drawerWidth = computed(() => {
+ if (isMobile.value) {
+ return 300;
+ } else {
+ return 600;
+ }
+});
+
async function getChats() {
chatStore.chats = (await getApi().Chat.apiV1ChatsGet()).data.data;
}
diff --git a/src/components/settings/ChatSettings.vue b/src/components/settings/ChatSettings.vue
index dc950d7..058150f 100644
--- a/src/components/settings/ChatSettings.vue
+++ b/src/components/settings/ChatSettings.vue
@@ -48,10 +48,14 @@