diff --git a/pages/home/index.vue b/pages/home/index.vue index 2a027c6..09b3459 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -50,7 +50,9 @@ Blame {{ i18n.TodaySteps }} - + {{ i18n.ReceiveEarnings }} @@ -348,7 +350,7 @@ export default { const script = document.createElement('script'); console.log(2); // view 层的页面运行在 www 根目录,其相对路径相对于 www 计算 - script.src = '/static/echarts.js'; + script.src = './static/echarts.js'; console.log(3); script.onload = this.initEcharts.bind(this); console.log(4); @@ -358,6 +360,10 @@ export default { }, methods: { + receive(newValue, oldValue, ownerVm, vm) { + console.log('newValue', newValue) + + }, initEcharts() { console.log(31); // let t1=null;