这是我的代码。好像可以吗?
import Chart from 'chart.js';
import Vue from 'vue/dist/vue';
import $ from 'Jquery';
import VueResource from 'vue-resource';
Vue.use('VueResource');
export default {
template: '<canvas id="myChart" ></canvas>',
mounted() {
this.$http.get('/data/get/pageinsights').then((response) => {
// success callback
}, (response) => {
})