材料站ocr前缀去除
This commit is contained in:
parent
ddc9fdf671
commit
84dc38b7f2
|
|
@ -53,7 +53,7 @@
|
|||
</uni-forms>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="outbound-btn" @tap="onHandleSave">
|
||||
<view class="scan-btn" @tap="onHandleSave">
|
||||
<text style="color: #FFF;">保存</text>
|
||||
</view>
|
||||
<!-- <view class="outbound-btn" @tap="onHandleOutbound">
|
||||
|
|
@ -153,7 +153,9 @@
|
|||
},
|
||||
onCameraSuccess(file) {
|
||||
// const file1 = "data:image/jpeg;base64," + file;
|
||||
const file1 = file
|
||||
// 去除 data:URL 前缀
|
||||
const base64WithoutPrefix = file.split(',').pop() || '';
|
||||
const file1 = base64WithoutPrefix;
|
||||
let params = {
|
||||
image: file1,
|
||||
jiju_type: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue