hans007
hans007
- `package.json` 我换成了 ```js "echarts": "^3.7.2", ``` - `src/man.js` ```js import echarts from 'echarts' ``` - `npm start` console 显示错误 ```js Uncaught ReferenceError: __DEV__ is not defined at Function.RootClass.extend (clazz.js?7b97:66)...
问题已解决,我是 vue2 的项目 编辑 `build/webpack.base.conf.js` ```js var webpack = require("webpack") ...... plugins: [ new webpack.DefinePlugin({ __DEV__: false }) ], ``` 然后我再运行,就没问题了~~~~ 感谢 @quapyrus @YuyangGong
你需要代码中加下 授权 if (Platform.isIOS == true) { jpush.applyPushAuthority( NotificationSettingsIOS(sound: true, alert: true, badge: true)); }