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