Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

feat(settings): 默认打开 AI 服务设置并提到导航首位

Connor55c75c3e5afa
diff --git a/frontend/app/pages/settings.vue b/frontend/app/pages/settings.vue
index 45bd263..55c0697 100644
--- a/frontend/app/pages/settings.vue
+++ b/frontend/app/pages/settings.vue
@@ -672,11 +672,11 @@ import { providerIconUrl } from '~/composables/useProviderIcon'
const { t } = useI18n()
const showBrandImage = ref(true)
-const tab = ref('general')
+const tab = ref('ai')
const showAdvanced = ref(false)
const baseTabs = computed(() => [
- { id: 'general', label: t('settings.tabs.general'), icon: Languages },
{ id: 'ai', label: t('settings.tabs.ai'), icon: Cpu },
+ { id: 'general', label: t('settings.tabs.general'), icon: Languages },
{ id: 'styles', label: t('settings.tabs.styles'), icon: Palette },
{ id: 'storage', label: t('settings.tabs.storage'), icon: HardDrive },
{ id: 'about', label: t('settings.tabs.about'), icon: RefreshCw },
@@ -685,7 +685,7 @@ const advancedTabs = computed(() => [
{ id: 'agents', label: t('settings.tabs.agents'), icon: Bot },
])
watch(showAdvanced, (v) => {
- if (!v && advancedTabs.value.some(x => x.id === tab.value)) tab.value = 'general'
+ if (!v && advancedTabs.value.some(x => x.id === tab.value)) tab.value = 'ai'
})
// ===== AI Service Configs =====