chore(ai): remove env toggle and default AI assistant to settings switch

This commit is contained in:
Ray.Hao
2026-01-21 14:00:53 +08:00
parent f9f8d65340
commit b36efc6fc9
4 changed files with 7 additions and 11 deletions

View File

@@ -71,7 +71,7 @@
<el-switch v-model="settingsStore.colorWeak" />
</div>
<div v-if="aiSystemEnabled" class="config-item flex-x-between">
<div class="config-item flex-x-between">
<span class="text-xs">AI 助手</span>
<el-switch v-model="settingsStore.userEnableAi" />
</div>
@@ -173,7 +173,7 @@ import { DocumentCopy, RefreshLeft, Check } from "@element-plus/icons-vue";
const { t } = useI18n();
import { LayoutMode, PageSwitchingAnimationOptions, SidebarColor, ThemeMode } from "@/enums";
import { useSettingsStore } from "@/store";
import { themeColorPresets, appConfig } from "@/settings";
import { themeColorPresets } from "@/settings";
// 页面切换动画选项
const pageSwitchingAnimationOptions: Record<string, OptionItem> = PageSwitchingAnimationOptions;
@@ -182,9 +182,6 @@ const pageSwitchingAnimationOptions: Record<string, OptionItem> = PageSwitchingA
const copyIcon = markRaw(DocumentCopy);
const resetIcon = markRaw(RefreshLeft);
// AI 系统级开关
const aiSystemEnabled = appConfig.aiEnabled;
// 加载状态
const copyLoading = ref(false);
const resetLoading = ref(false);