Browse Source

Merge branch 'master' of https://github.com/yudaocode/yudao-ui-admin-vue3 into dev

YunaiV 1 year ago
parent
commit
afc16706a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Icon/src/IconSelect.vue

+ 1 - 1
src/components/Icon/src/IconSelect.vue

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