Use correct imports
parent
6833117cd6
commit
750f74d8c0
|
@ -5,7 +5,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ChartJS from 'chart.js/src/chart.js';
|
||||
import * as Chart from 'chart.js';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
@ -38,7 +38,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
initChart() {
|
||||
this.chart = new ChartJS(this.$refs.canvas, {
|
||||
this.chart = new Chart(this.$refs.canvas, {
|
||||
type: this.type,
|
||||
data: this.data,
|
||||
options: this.options
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Quill from "quill";
|
||||
import * as Quill from "quill";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
Loading…
Reference in New Issue