Commit 1f375e29 authored by zhangkaixuan11's avatar zhangkaixuan11

111

parent ba14a91c
...@@ -322,16 +322,16 @@ export default class Index extends Component<Props, State, HomeState, AppContext ...@@ -322,16 +322,16 @@ export default class Index extends Component<Props, State, HomeState, AppContext
quality: 0.8, quality: 0.8,
// result: 'base64' // result: 'base64'
}).then( }).then(
uri => { curi => {
console.log("Image saved to", uri); console.log("Image saved to", curi);
// const screenShotShowImg = `data:image/png;base64,${uri}`; // const screenShotShowImg = `data:image/png;base64,${uri}`;
PhotoEditor.Edit({ PhotoEditor.Edit({
path: uri, path: curi.replace('file:///data','/data'),
hiddenControls: ['save', 'share'], hiddenControls: ['save', 'share'],
onDone: (uri) => { onDone: (uri) => {
console.log('save image photo editor', uri); console.log('save image photo editor', uri);
// 上传文件 // 上传文件
// this.uploadScreenShot(uri); this.uploadScreenShot(curi);
// this.setState({ // this.setState({
// showAddNote: true, // showAddNote: true,
// noteImage: uri // noteImage: uri
......
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