fix(仪表板): 开启首选项后禁用默认值,但规则中依然显示

This commit is contained in:
dataeaseShu
2025-10-15 11:49:37 +08:00
committed by dataeaseShu
parent b46f758399
commit 8563400520
2 changed files with 3 additions and 3 deletions

View File

@@ -351,7 +351,7 @@ const handleFieldIdChange = (val: EnumValue) => {
})
.finally(() => {
loading.value = false
if (disabledFirstItem.value) {
if (disabledFirstItem.value && config.value.defaultValueCheck) {
time = setTimeout(() => {
clearTimeout(time)
setDefaultValueFirstItem()
@@ -504,7 +504,7 @@ watch(
if (!val) {
nextTick(() => {
selectValue.value = undefined
if (!config.value.defaultValueFirstItem) return
if (!config.value.defaultValueFirstItem || !config.value.defaultValueCheck) return
setDefaultValueFirstItem()
})
}

View File

@@ -146,7 +146,7 @@ const del = (index, child) => {
align-items: center;
position: relative;
z-index: 1;
width: 100%;
width: fit-content;
.logic-left {
box-sizing: border-box;