From 812d7f8dbb174025b8d1eaf4e481bb148cbc7db4 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 27 Aug 2026 10:02:32 +0800 Subject: [PATCH] fix(System Variables): The key-value type system variable has only one option, and an empty option will be available when selecting it. --- frontend/src/views/system/user/User.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 259c0fd3..3dcc911b 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -386,8 +386,8 @@ { 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]] + if (variable.var_type === 'kv') { + state.form.system_variables[index].variableValues = [ + getVariableOptionList(state.form.system_variables[index].variableId)[0].label, + ] + } else { + state.form.system_variables[index].variableValues = [variable.value[0]] + } } }