From d4d7f635f5ce1d0feb8ee44161d64ad6483b5969 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 25 May 2026 23:48:09 +0800 Subject: [PATCH] fix: allow rust acceleration re-enable --- src/views/setting/AccountSettingSystem.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index 0a978b03..30bdeb6e 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -642,9 +642,9 @@ async function loadSystemSettings() { if (result.data.hasOwnProperty(key)) (SystemSettings.value[sectionKey] as any)[key] = result.data[key] }) } - const accelEnabled = Boolean(result.data.RUST_ACCEL_ENABLED) - rustAccelAvailable.value = accelEnabled - if (!accelEnabled) SystemSettings.value.Advanced.RUST_ACCEL = false + const accelAvailable = Boolean(result.data.RUST_ACCEL_AVAILABLE ?? result.data.RUST_ACCEL_ENABLED) + rustAccelAvailable.value = accelAvailable + if (!accelAvailable) SystemSettings.value.Advanced.RUST_ACCEL = false SystemSettings.value.Basic.LLM_THINKING_LEVEL = resolveThinkingLevelValue(result.data) await loadLlmProviders() }