Use correct imports

pull/12/head
cagataycivici 2019-06-25 00:59:35 +03:00
parent 6833117cd6
commit 750f74d8c0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -48,7 +48,7 @@
</template>
<script>
import Quill from "quill";
import * as Quill from "quill";
export default {
props: {