mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-27 11:10:12 +08:00
fix: 修复 Rust 加速可用性标志并调整插件本地仓库路径和传输线程设置的布局
This commit is contained in:
@@ -121,7 +121,7 @@ const SystemSettings = ref<any>({
|
|||||||
// 实验室
|
// 实验室
|
||||||
PLUGIN_AUTO_RELOAD: false,
|
PLUGIN_AUTO_RELOAD: false,
|
||||||
PLUGIN_LOCAL_REPO_PATHS: '',
|
PLUGIN_LOCAL_REPO_PATHS: '',
|
||||||
RUST_ACCEL: true,
|
RUST_ACCEL: false,
|
||||||
ENCODING_DETECTION_PERFORMANCE_MODE: true,
|
ENCODING_DETECTION_PERFORMANCE_MODE: true,
|
||||||
TRANSFER_THREADS: 1,
|
TRANSFER_THREADS: 1,
|
||||||
},
|
},
|
||||||
@@ -624,8 +624,9 @@ async function loadSystemSettings() {
|
|||||||
if (result.data.hasOwnProperty(key)) (SystemSettings.value[sectionKey] as any)[key] = result.data[key]
|
if (result.data.hasOwnProperty(key)) (SystemSettings.value[sectionKey] as any)[key] = result.data[key]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
rustAccelAvailable.value = Boolean(result.data.RUST_ACCEL_AVAILABLE)
|
const accelEnabled = Boolean(result.data.RUST_ACCEL_ENABLED)
|
||||||
if (!rustAccelAvailable.value) SystemSettings.value.Advanced.RUST_ACCEL = false
|
rustAccelAvailable.value = accelEnabled
|
||||||
|
if (!accelEnabled) SystemSettings.value.Advanced.RUST_ACCEL = false
|
||||||
SystemSettings.value.Basic.LLM_THINKING_LEVEL = resolveThinkingLevelValue(result.data)
|
SystemSettings.value.Basic.LLM_THINKING_LEVEL = resolveThinkingLevelValue(result.data)
|
||||||
await loadLlmProviders()
|
await loadLlmProviders()
|
||||||
}
|
}
|
||||||
@@ -2244,6 +2245,28 @@ watch(currentLlmSnapshotKey, (snapshotKey, previousSnapshotKey) => {
|
|||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
<VWindowItem value="dev">
|
<VWindowItem value="dev">
|
||||||
<div>
|
<div>
|
||||||
|
<VRow>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="SystemSettings.Advanced.PLUGIN_LOCAL_REPO_PATHS"
|
||||||
|
:label="t('setting.system.pluginLocalRepoPaths')"
|
||||||
|
:hint="t('setting.system.pluginLocalRepoPathsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-folder"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model.number="SystemSettings.Advanced.TRANSFER_THREADS"
|
||||||
|
:label="t('setting.system.transferThreads')"
|
||||||
|
:hint="t('setting.system.transferThreadsHint')"
|
||||||
|
persistent-hint
|
||||||
|
type="number"
|
||||||
|
min="1"
|
||||||
|
prepend-inner-icon="mdi-swap-horizontal"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VSwitch
|
<VSwitch
|
||||||
@@ -2270,26 +2293,6 @@ watch(currentLlmSnapshotKey, (snapshotKey, previousSnapshotKey) => {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
|
||||||
<VTextField
|
|
||||||
v-model="SystemSettings.Advanced.PLUGIN_LOCAL_REPO_PATHS"
|
|
||||||
:label="t('setting.system.pluginLocalRepoPaths')"
|
|
||||||
:hint="t('setting.system.pluginLocalRepoPathsHint')"
|
|
||||||
persistent-hint
|
|
||||||
prepend-inner-icon="mdi-folder"
|
|
||||||
/>
|
|
||||||
</VCol>
|
|
||||||
<VCol cols="12" md="6">
|
|
||||||
<VTextField
|
|
||||||
v-model.number="SystemSettings.Advanced.TRANSFER_THREADS"
|
|
||||||
:label="t('setting.system.transferThreads')"
|
|
||||||
:hint="t('setting.system.transferThreadsHint')"
|
|
||||||
persistent-hint
|
|
||||||
type="number"
|
|
||||||
min="1"
|
|
||||||
prepend-inner-icon="mdi-swap-horizontal"
|
|
||||||
/>
|
|
||||||
</VCol>
|
|
||||||
</VRow>
|
</VRow>
|
||||||
</div>
|
</div>
|
||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user