From 0da3c00dea3f95746b6c08d28b2a6f5c34eb3b43 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 13 Apr 2023 21:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20IconSelect=20=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit f436490165b7adacf96fc4a793498ac4d334f77c) --- src/components/Icon/src/IconSelect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Icon/src/IconSelect.vue b/src/components/Icon/src/IconSelect.vue index 1a124ca6..9b77fb2b 100644 --- a/src/components/Icon/src/IconSelect.vue +++ b/src/components/Icon/src/IconSelect.vue @@ -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) }