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
quality: 0.8,
// result: 'base64'
}).then(
uri => {
console.log("Image saved to", uri);
curi => {
console.log("Image saved to", curi);
// const screenShotShowImg = `data:image/png;base64,${uri}`;
PhotoEditor.Edit({
path: uri,
path: curi.replace('file:///data','/data'),
hiddenControls: ['save', 'share'],
onDone: (uri) => {
console.log('save image photo editor', uri);
// 上传文件
// this.uploadScreenShot(uri);
this.uploadScreenShot(curi);
// this.setState({
// showAddNote: true,
// 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