From f73e4cf65049e0ac5a402c6ddf848c82da7c833e Mon Sep 17 00:00:00 2001 From: vee Date: Thu, 25 Aug 2022 10:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=A6=96=E9=A1=B5app?= =?UTF-8?q?=E6=AD=A5=E6=95=B0=E4=B8=8D=E6=98=BE=E7=A4=BA=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=AD=BE=E5=90=8D=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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;