我想用vue-highcharts用moment.js。
<template>
<highcharts :constructor-type="'stockChart'" :options="stockOptions" :updateArgs="[true, false]"></highcharts>
</template>
<script>
...
stockOptions: {
series: [{
data: ''
}],
plotOptions: {
series: {
turboThreshold: 0
}
},
chart: {
type: 'area'
},
time: {
timezone: 'America/Sao_paulo'
}
}
...
</script>
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:
Highcharts Error #25
Can't find Moment.js library
Using the global.timezone option requires the Moment.js library to be loaded.
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决此问题?