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