refactor: remove recognize source selection and hardcode to themoviedb in setup wizard

This commit is contained in:
jxxghp
2026-04-16 19:50:37 +08:00
parent 4b3733bc19
commit 61c073ad6c
2 changed files with 1 additions and 19 deletions

View File

@@ -1129,7 +1129,7 @@ export function useSetupWizard() {
const basicSettings = {
APP_DOMAIN: wizardData.value.basic.appDomain,
API_TOKEN: wizardData.value.basic.apiToken,
RECOGNIZE_SOURCE: wizardData.value.basic.recognizeSource,
RECOGNIZE_SOURCE: 'themoviedb',
OCR_HOST: wizardData.value.basic.ocrHost,
PROXY_HOST: wizardData.value.basic.proxyHost,
GITHUB_TOKEN: wizardData.value.basic.githubToken,
@@ -1414,9 +1414,6 @@ export function useSetupWizard() {
if (result.data.PROXY_HOST) {
wizardData.value.basic.proxyHost = result.data.PROXY_HOST
}
if (result.data.RECOGNIZE_SOURCE) {
wizardData.value.basic.recognizeSource = result.data.RECOGNIZE_SOURCE
}
if (result.data.OCR_HOST) {
wizardData.value.basic.ocrHost = result.data.OCR_HOST
}

View File

@@ -37,11 +37,6 @@ const confirmPasswordErrorMessage = computed(() => {
return ''
})
const recognizeSourceItems = [
{ title: 'TheMovieDb', value: 'themoviedb' },
{ title: '豆瓣', value: 'douban' },
]
// API Token验证
const apiTokenError = computed(() => {
return !wizardData.value.basic.apiToken && hasErrors.value
@@ -124,16 +119,6 @@ const usernameErrorMessage = computed(() => {
clearable
/>
</VCol>
<VCol cols="12" md="6">
<VSelect
v-model="wizardData.basic.recognizeSource"
:label="t('setupWizard.basic.recognizeSource')"
:hint="t('setupWizard.basic.recognizeSourceHint')"
:items="recognizeSourceItems"
persistent-hint
prepend-inner-icon="mdi-database-search"
/>
</VCol>
<VCol cols="12" md="6">
<VTextField
v-model="wizardData.basic.ocrHost"