材料站ocr前缀去除

This commit is contained in:
hongchao 2025-07-16 16:01:34 +08:00
parent ddc9fdf671
commit 84dc38b7f2
1 changed files with 4 additions and 2 deletions

View File

@ -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: '',