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) {
     handleChange(value) {
       this.defaultVal = 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('input', value);
-      this.$emit('change', this.value, settleStyleName);
+      this.$emit('change', this.value, settleStyleName?settleStyleName.name:'');
     },
     },
     // 列表数据
     // 列表数据
     getList () {
     getList () {