Skip to content

Commit b131320

Browse files
authored
Merge pull request #2 from koutianyu/dev
修复新增或修改菜单时,无法选择菜单图标的bug
2 parents 094c3fe + bc5df9b commit b131320

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
@@ -95,7 +95,7 @@ watch(
9595
return props.modelValue
9696
},
9797
() => {
98-
if (props.modelValue) {
98+
if (props.modelValue && props.modelValue.contains(':')) {
9999
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
100100
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
101101
}

0 commit comments

Comments
 (0)