Skip to content

Commit c358330

Browse files
committed
fix [Cannot assign to read only property 'exports' of object '#<Object>' ] error.
ecomfe#213
1 parent ea2bc1b commit c358330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ECharts.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<script>
1313
import echarts from 'echarts/lib/echarts'
14-
import debounce from 'lodash/debounce'
14+
import _ from 'lodash'
1515
import { addListener, removeListener } from 'resize-detector'
1616
1717
// enumerating ECharts events for now
@@ -165,7 +165,7 @@ export default {
165165
166166
if (this.autoresize) {
167167
this.lastArea = this.getArea()
168-
this.__resizeHandler = debounce(() => {
168+
this.__resizeHandler = _.debounce(() => {
169169
if (this.lastArea === 0) {
170170
// emulate initial render for initially hidden charts
171171
this.mergeOptions({}, true)

0 commit comments

Comments
 (0)