Jelajahi Sumber

Merge branch 'ver2' of http://94.191.59.107:3000/houwenfeng/cloudfile-ui into ver2

liling 1 tahun lalu
induk
melakukan
22c0856731
4 mengubah file dengan 13 tambahan dan 12 penghapusan
  1. 3 3
      .env.development
  2. 2 2
      .env.production
  3. 2 2
      .env.zwp
  4. 6 5
      src/components/IdentifyFont/IdentifyFont.vue

+ 3 - 3
.env.development

@@ -8,7 +8,7 @@ VITE_APP_ENV = 'development'
 VITE_APP_BASE_API = '/dev-api'
 
 # LOGO
-VITE_APP_LOGO = '/logo.png'
+VITE_APP_LOGO = '/w_logo.png'
 
-# PATH
-VITE_APP_PATH = 'https://192.168.101.99:19443'
+# onlyoffice
+VITE_APP_PATH = https://192.168.188.88:19443

+ 2 - 2
.env.production

@@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/prod-api'
 VITE_BUILD_COMPRESS = gzip
 
 # LOGO
-VITE_APP_LOGO = '/logo.png'
+VITE_APP_LOGO = '/w_logo.png'
 
 # PATH
-VITE_APP_PATH = 'https://192.168.101.99:19443'
+VITE_APP_PATH = 'https://doc.jujutong.cloud:19443'

+ 2 - 2
.env.zwp

@@ -1,5 +1,5 @@
 # 页面标题
-VITE_APP_TITLE = 聚合智慧文档
+VITE_APP_TITLE = AI数字文档
 
 # 生产环境配置
 VITE_APP_ENV = 'production'
@@ -14,4 +14,4 @@ VITE_BUILD_COMPRESS = gzip
 VITE_APP_LOGO = '/zwp_logo.png'
 
 # PATH
-VITE_APP_PATH = 'https://192.168.101.99:19443'
+VITE_APP_PATH = 'https://doc.jujutong.cloud:19443'

+ 6 - 5
src/components/IdentifyFont/IdentifyFont.vue

@@ -113,7 +113,7 @@
     class="lodingBox"
   ></div>
 </template>
-  
+
   <script setup>
 import { onMounted, ref, toRaw, watch, inject,onBeforeUnmount } from "vue";
 import { ElMessage } from "element-plus";
@@ -201,7 +201,8 @@ onMounted(async () => {
     //   console.log('err',err);
     // })
     thisStep.value = "end";
-    textData.value = res.msg;
+    textData.value = res.txt;
+    showImg.value = 'data:image/jpeg;base64,'+ res.img;
     // sessionStorage.setItem('textData',textData.value)
     // sessionStorage.setItem('showImg',JSON.stringify(showImg.value))
   } else {
@@ -266,7 +267,8 @@ const fileChangeMsg = async (val) => {
   showImg.value = URL.createObjectURL(imgRes);
   const res = await ocrRemark(data.remark);
   thisStep.value = "end";
-  textData.value = res.msg;
+  textData.value = res.txt;
+  showImg.value = 'data:image/jpeg;base64,'+ res.img;
   // sessionStorage.setItem('textData',textData.value)
   //   sessionStorage.setItem('showImg',JSON.stringify(showImg.value))
   // console.log("res", res);
@@ -282,7 +284,7 @@ onBeforeUnmount(()=>{
     sessionStorage.setItem('showImg','')
 })
 </script>
-  
+
   <style lang="scss" scoped>
 .lodingBox {
   position: absolute;
@@ -521,4 +523,3 @@ onBeforeUnmount(()=>{
   text-align: center;
 }
 </style>
-