fix(User Management): Even after a system variable value is deleted, the user bindings still exist when viewing user management.

This commit is contained in:
dataeaseShu
2026-03-17 09:48:39 +08:00
committed by dataeaseShu
parent 606949af67
commit 412660b095
+10 -1
View File
@@ -911,7 +911,16 @@ const editHandler = (row: any) => {
})
.finally(() => {
state.form.system_variables = state.form.system_variables.filter((ele: any) => {
return !!variableValueMap.value[ele.variableId]
if (variableValueMap.value[ele.variableId]) {
if (variableValueMap.value[ele.variableId].var_type === 'text') {
ele.variableValues = variableValueMap.value[ele.variableId].value.filter(
(item: any) => ele.variableValues.indexOf(item) > -1
)
return !!ele.variableValues.length
}
return true
}
return false
})
dialogTitle.value = row?.id ? t('user.edit_user') : t('user.add_users')
dialogFormVisible.value = true