zhangjie hai 1 ano
pai
achega
8908c48556

+ 1 - 1
src/modules/client/components/ScanTaskProcessDialog.vue

@@ -456,7 +456,7 @@ export default {
       if (!this.looping) return;
       await this.getScaningFile();
 
-      this.addSetTime(this.loopScaningFile, 2 * 1000);
+      this.addSetTime(this.loopScaningFile, 1 * 1000);
     },
     stopLoopScaningFile() {
       this.clearSetTs();

+ 1 - 1
src/plugins/env.js

@@ -104,7 +104,7 @@ const configSets = [
     validate(val) {
       return [0, 1].includes(val);
     },
-    default: 1,
+    default: 0,
   },
 ];
 

+ 5 - 1
src/plugins/imageOcr.js

@@ -122,7 +122,11 @@ export function deleteFiles(files) {
 }
 
 export function getScanFileBasename(filepath) {
-  return path.basename(filepath, path.extname(filepath)).split("_")[0];
+  return path
+    .basename(filepath, path.extname(filepath))
+    .split("_")
+    .slice(0, -1)
+    .join("_");
 }
 
 export function getPreUploadFiles(dir) {