From 5588f7f1f7007c07c8b49919790238857242ea71 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 8 Nov 2023 11:45:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(general-attribute):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20classList=20=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/general-attribute/general-attribute.uvue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/component/general-attribute/general-attribute.uvue b/pages/component/general-attribute/general-attribute.uvue index 16a54b0e..7402baf0 100644 --- a/pages/component/general-attribute/general-attribute.uvue +++ b/pages/component/general-attribute/general-attribute.uvue @@ -76,8 +76,7 @@ export default { this.validateGeneralAttrText = '基础属性 id 验证失败' return } - const classList = generalTarget.ext['classList'] as string[] - if (!classList.includes('general-class')) { + if (!generalTarget.classList.includes('general-class')) { this.validateGeneralAttrText = '基础属性 class 验证失败' return } -- GitLab