mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-06 20:43:03 +08:00
refactor: remove recognize source selection and hardcode to themoviedb in setup wizard
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user