From 84868594d1e98274e4d6ee986d47d82f35f38ecc Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 26 Aug 2026 10:03:13 +0800 Subject: [PATCH] feat(System Variables): There is only one option when selecting a variable; you do not need to select it again. --- frontend/src/views/system/user/User.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index e884d854..259c0fd3 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -386,6 +386,7 @@ { return [] } +const handleVariableChange = (index: number) => { + state.form.system_variables[index].variableValues = [] + const variable = variableValueMap.value[state.form.system_variables[index].variableId] + if (variable && variable.value.length === 1) { + state.form.system_variables[index].variableValues = [variable.value[0]] + } +} + const getSelectedKeysFromStoredValues = (variableId: string, storedValues: any[] = []) => { const variable = getVariableDefinition(variableId) if (!variable || variable.var_type !== 'kv') return storedValues