浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
8c18ad7684
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/common/settleStyle.js

+ 2 - 2
src/views/common/settleStyle.js

@@ -54,9 +54,9 @@ const SettleStyle = {
     },
     handleChange(value) {
       this.defaultVal = value;
-      const settleStyleName = this.list.find(item => item[this.defValKey] == value).name
+      const settleStyleName = this.list.find(item => item[this.defValKey] == value)
       this.$emit('input', value);
-      this.$emit('change', this.value, settleStyleName);
+      this.$emit('change', this.value, settleStyleName?settleStyleName.name:'');
     },
     // 列表数据
     getList () {