diff --git a/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue b/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue index 05b83140..d366ccc4 100644 --- a/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue +++ b/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue @@ -14,6 +14,8 @@ const form = ref({ boxImageUrl: '', }) +const otherImages = ref([]) + function handleChooseBox() { uni.chooseImage({ count: 1, @@ -23,6 +25,11 @@ function handleChooseBox() { boxImage.value = tempFile.path + toast.loading('OCR识别中,请稍等 . . .', { + overlay: true, + transparent: false, + }) + imageCompress(tempFile.path).then((compressRes) => { uploadFileToAliyun(compressRes.path, tempFile.name, 'image').then((res) => { if (res.url) { @@ -30,11 +37,6 @@ function handleChooseBox() { ocrFinish.value = false - toast.loading('OCR识别中,请稍等 . . .', { - overlay: true, - transparent: false, - }) - recognizeOcrBoxApi({ fileUrl: form.value.boxImageUrl, }).then((ocrRes) => { @@ -171,7 +173,10 @@ function handleDeleteBoxImage() { - + diff --git a/code/container-ocr/ocr-vue/src/views/system/permission/index.vue b/code/container-ocr/ocr-vue/src/views/system/permission/index.vue index e2f6576d..fa867a74 100644 --- a/code/container-ocr/ocr-vue/src/views/system/permission/index.vue +++ b/code/container-ocr/ocr-vue/src/views/system/permission/index.vue @@ -544,21 +544,6 @@ function handleShowBatchCopyDialog() { - - - -const router = useRouter(); - - - - - diff --git a/code/container-ocr/ocr-vue/src/views/test/index.vue b/code/container-ocr/ocr-vue/src/views/test/index.vue deleted file mode 100644 index 626a40ab..00000000 --- a/code/container-ocr/ocr-vue/src/views/test/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - -