|
@@ -47,10 +47,7 @@
|
|
<script>
|
|
<script>
|
|
import Cropper from "cropperjs";
|
|
import Cropper from "cropperjs";
|
|
import db from "@/plugins/db";
|
|
import db from "@/plugins/db";
|
|
-import {
|
|
|
|
- getPreUploadFiles,
|
|
|
|
- renamePreUploadJsonFile
|
|
|
|
-} from "../../../plugins/imageOcr";
|
|
|
|
|
|
+import { getPreUploadFiles, clearDir } from "../../../plugins/imageOcr";
|
|
import { evokeScanner } from "../../../plugins/scanner";
|
|
import { evokeScanner } from "../../../plugins/scanner";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -76,7 +73,6 @@ export default {
|
|
await this.evokeScanExe();
|
|
await this.evokeScanExe();
|
|
await this.initData();
|
|
await this.initData();
|
|
this.initCropper();
|
|
this.initCropper();
|
|
- renamePreUploadJsonFile(this.GLOBAL.input);
|
|
|
|
},
|
|
},
|
|
async evokeScanExe() {
|
|
async evokeScanExe() {
|
|
await evokeScanner(this.GLOBAL.input).catch(error => {
|
|
await evokeScanner(this.GLOBAL.input).catch(error => {
|
|
@@ -141,6 +137,7 @@ export default {
|
|
this.cropper.destroy();
|
|
this.cropper.destroy();
|
|
this.cropper = false;
|
|
this.cropper = false;
|
|
}
|
|
}
|
|
|
|
+ clearDir(this.GLOBAL.input);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|