Commit 25972d74 by 万亚飞

fix

parent fac43759
...@@ -126,7 +126,14 @@ class UpLoad extends Component { ...@@ -126,7 +126,14 @@ class UpLoad extends Component {
<div className="photo-wrap"> <div className="photo-wrap">
<ImagePicker <ImagePicker
onAddImageClick={e => { onAddImageClick={e => {
if (this.state.appInfo.v <= '2.2.50' && isIOS) { let version = this.state.appInfo.v;
let vk = Object.keys(this.state.appInfo).filter(item => {
return item.indexOf('accessToken=') > -1;
})[0];
if (!!vk) {
version = this.state.appInfo[vk];
}
if (version <= '2.2.50' && isIOS) {
e.preventDefault(); e.preventDefault();
Modal.alert('您的APP版本太低,升级后可使用上传图片功能'); Modal.alert('您的APP版本太低,升级后可使用上传图片功能');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment