Skip to content

Commit bc5df9b

Browse files
committed
修复新增或修改菜单时,无法选择菜单图标的bug
1 parent aa6c50b commit bc5df9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Icon/src/IconSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ watch(
9090
return props.modelValue
9191
},
9292
() => {
93-
if (props.modelValue) {
93+
if (props.modelValue && props.modelValue.contains(':')) {
9494
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
9595
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
9696
}

0 commit comments

Comments
 (0)