提交 5588f7f1 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(general-attribute): 优化 classList 获取方式

上级 a140182e
...@@ -76,8 +76,7 @@ export default { ...@@ -76,8 +76,7 @@ export default {
this.validateGeneralAttrText = '基础属性 id 验证失败' this.validateGeneralAttrText = '基础属性 id 验证失败'
return return
} }
const classList = generalTarget.ext['classList'] as string[] if (!generalTarget.classList.includes('general-class')) {
if (!classList.includes('general-class')) {
this.validateGeneralAttrText = '基础属性 class 验证失败' this.validateGeneralAttrText = '基础属性 class 验证失败'
return return
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册