修复新增或修改菜单时,无法选择菜单图标的bug
This commit is contained in:
parent
aa6c50b7d9
commit
bc5df9b143
@ -90,7 +90,7 @@ watch(
|
|||||||
return props.modelValue
|
return props.modelValue
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
if (props.modelValue) {
|
if (props.modelValue && props.modelValue.contains(':')) {
|
||||||
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
|
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
|
||||||
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
|
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user