请教下 将图表echarts 导出为 excel 报错


pushExcel(index) {
      const eChartname = ['渠道布局问题 ']
      var excel = [{
        images: [],
        header: [],
        data: [],
        sheetName: [eChartname[index]],
        name: eChartname[index] + '.xls'
      }]
        var imgs = []
        const myChart = echarts.init(document.getElementById('AccumulationArea'))
        console.info(myChart)
        const base64 = myChart.getDataURL()
        imgs.push(base64)
}

在使用 myChart.getDataURL() 时报以下错误
img

库李没获取get函数。

需要怎么获取呢?