Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
created() {
const autoResizeRender = ams.configs && ams.configs['block_chart'] && ams.configs['block_chart']['resize-render'];
if (autoResizeRender !== false) {
const { addEvent, debounce } = ams.utils;
addEvent(window, 'resize', debounce(() => {
this.chartDom && this.chartDom.resize();
}, 100));
}
},
updated() {