Commit f4364901 by YunaiV

修复 IconSelect 报错

parent c461800e
......@@ -95,7 +95,7 @@ watch(
return props.modelValue
},
() => {
if (props.modelValue && props.modelValue.contains(':')) {
if (props.modelValue && props.modelValue.indexOf(':') >= 0) {
currentActiveType.value = props.modelValue.substring(0, 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