From 2b222c123fd39fde4e1a3da42aafa4bad2514dc6 Mon Sep 17 00:00:00 2001 From: phantom <563789445@qq.com> Date: Sun, 10 Mar 2019 11:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=93=E5=8C=85=E5=90=8E?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E5=9B=BE=E6=A0=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Echarts/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Echarts/index.js b/src/components/Echarts/index.js index fe86c8c..1fa2c58 100644 --- a/src/components/Echarts/index.js +++ b/src/components/Echarts/index.js @@ -34,7 +34,8 @@ export default class App extends Component { }} scalesPageToFit={Platform.OS !== 'ios'} originWhitelist={['*']} - source={require('./tpl.html')} + // source={require('./tpl.html')} + source={{uri: 'file:///android_asset/tpl.html'}} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} />