Merge pull request #2 from koutianyu/dev

This commit is contained in:
shizhong 2023-06-13 12:36:01 +08:00
parent 76472bcd8e
commit 520292c902

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