Commit b131320c by 芋道源码 Committed by GitHub

Merge pull request #2 from koutianyu/dev

修复新增或修改菜单时,无法选择菜单图标的bug
parents 094c3fe1 bc5df9b1
...@@ -95,7 +95,7 @@ watch( ...@@ -95,7 +95,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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment