修复新增或修改菜单时,无法选择菜单图标的bug

This commit is contained in:
Theo 2023-03-07 18:44:21 +08:00
parent aa6c50b7d9
commit bc5df9b143

View File

@ -90,7 +90,7 @@ watch(
return props.modelValue
},
() => {
if (props.modelValue) {
if (props.modelValue && props.modelValue.contains(':')) {
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
}