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

pull/119/head
Theo 2023-03-07 18:44:21 +08:00
parent aa6c50b7d9
commit bc5df9b143
1 changed files with 1 additions and 1 deletions

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)
}