Merge pull request #2 from koutianyu/dev

修复新增或修改菜单时,无法选择菜单图标的bug
This commit is contained in:
芋道源码 2023-04-13 07:58:15 +08:00 committed by GitHub
commit b131320cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,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)
}