ZaiZai 1 سال پیش
والد
کامیت
140882816a
7فایلهای تغییر یافته به همراه19 افزوده شده و 41 حذف شده
  1. 2 0
      index.html
  2. 2 2
      package.json
  3. 4 0
      public/plugins/pdfjs/3.10.111/web/viewer.js
  4. 0 0
      public/plugins/pdfjs/3.10.111/web/viewer.js.map
  5. 1 1
      public/version.json
  6. 2 30
      src/App.vue
  7. 8 8
      yarn.lock

+ 2 - 0
index.html

@@ -3,6 +3,8 @@
     <head>
         <meta charset="UTF-8" />
         <link rel="icon" href="/favicon.ico" />
+        <meta http-equiv="Cache-control" content="no-cache">
+        <meta http-equiv="Expires" content="-1">
         <meta http-equiv="X-UA-Compatible" content="requiresActiveX=true" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
         <link rel="stylesheet" href="/plugins/element-plus/index.css" />

+ 2 - 2
package.json

@@ -17,8 +17,8 @@
         "crypto-js": "^4.2.0",
         "dayjs": "^1.11.10",
         "echarts": "^5.4.2",
-        "element-plus": "^2.5.3",
-        "hc-vue3-ui": "^3.0.3",
+        "element-plus": "^2.5.4",
+        "hc-vue3-ui": "^3.1.1",
         "js-base64": "^3.7.6",
         "js-cookie": "^3.0.5",
         "js-fast-way": "^0.4.4",

+ 4 - 0
public/plugins/pdfjs/3.10.111/web/viewer.js

@@ -2478,6 +2478,10 @@ const PDFViewerApplication = {
         }
       }
     }
+      window.parent.postMessage({
+          type: "error",
+          msg: `${message}`
+      })
     console.error(`${message}\n\n${moreInfoText.join("\n")}`);
   },
   progress(level) {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
public/plugins/pdfjs/3.10.111/web/viewer.js.map


+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240202115335"
+  "value": "20240202162842"
 }

+ 2 - 30
src/App.vue

@@ -7,11 +7,9 @@
 <script setup>
 import { nextTick, ref, watch } from 'vue'
 import { useAppStore } from '~src/store'
-import { detectionBrowser, useOsTheme } from 'hc-vue3-ui'
+import { detectionBrowser, getAppVersion, useOsTheme } from 'hc-vue3-ui'
 import { getObjValue, setElementMainColor } from 'js-fast-way'
-import { getStoreValue, setStoreValue } from '~uti/storage'
 import { addDocumentsJs } from '~uti/tools'
-import { getVersionJson } from '~api/other'
 import split from 'split.js'
 
 //初始变量
@@ -35,36 +33,10 @@ nextTick(()=> {
     addDocumentsJs()
     //生产环境下,检测更新
     if (import.meta.env.PROD) {
-        getVersionJsonApi()
-        //检测新版本
-        setInterval(() => {
-            getVersionJsonApi()
-        }, 1000 * 60)
+        getAppVersion()
     }
 })
 
-//获取版本更新信息
-const getVersionJsonApi = async () => {
-    const cache_version = getStoreValue('version')
-    const { res } = await getVersionJson()
-    const version = getObjValue(res)?.value
-    setStoreValue('version', version)
-    if (cache_version && cache_version !== version) {
-        window?.$messageBox?.alert('检测到有新版本更新,请点击更新,或手动刷新网页更新,如果不更新,将无法使用相关功能', '更新提醒', {
-            showCancelButton: true,
-            confirmButtonText: '立即更新',
-            cancelButtonText: '暂不更新',
-            type: 'warning',
-            callback: (action) => {
-                if (action === 'confirm') {
-                    //刷新页面
-                    window.location.reload()
-                }
-            },
-        })
-    }
-}
-
 //设置主题
 const setUserTheme = (theme, appColor) => {
     const colorVal = getObjValue(appColor)

+ 8 - 8
yarn.lock

@@ -944,10 +944,10 @@ electron-to-chromium@^1.4.601:
   resolved "http://39.108.216.210:9000/electron-to-chromium/-/electron-to-chromium-1.4.626.tgz#c20e1706354a31721b65e81496800534dd04b222"
   integrity sha512-f7/be56VjRRQk+Ric6PmIrEtPcIqsn3tElyAu9Sh6egha2VLJ82qwkcOdcnT06W+Pb6RUulV1ckzrGbKzVcTHg==
 
-element-plus@^2.5.3:
-  version "2.5.3"
-  resolved "http://39.108.216.210:9000/element-plus/-/element-plus-2.5.3.tgz#d4f8988ea199ad28ef15a6b0b8f94b7639d262fb"
-  integrity sha512-wmtstxaMkD6UinIgD+45CjrhbRh4u0vt+/GgxfPeMLt5pDpIVwZFjkUaVcWqqxcxd5a80HP3XlDF74fW7wim9A==
+element-plus@^2.5.4:
+  version "2.5.4"
+  resolved "http://39.108.216.210:9000/element-plus/-/element-plus-2.5.4.tgz#c78c44cd6126e65c7f8d58aac664d688cc921e24"
+  integrity sha512-3z2BQ53B93wypOLFq+vmT2XibTGRm3WODVPdAGymqTVGRIeUfFh17ysymn81ZvEVs4b8Dq6Fxr3I1B/9NUwZ0A==
   dependencies:
     "@ctrl/tinycolor" "^3.4.1"
     "@element-plus/icons-vue" "^2.3.1"
@@ -1324,10 +1324,10 @@ hasown@^2.0.0:
   dependencies:
     function-bind "^1.1.2"
 
-hc-vue3-ui@^3.0.3:
-  version "3.0.3"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.0.3.tgz#8f997a7742becc840677fc24c6143a019ea332ff"
-  integrity sha512-zXp/WANd+2Zx6gfYG3oN92/Y9chbILG4GON17p/ozzMvFWcizxcLO0FRDD0CPvplDrLtBAVM0atxrICkgdWxrw==
+hc-vue3-ui@^3.1.1:
+  version "3.1.1"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.1.1.tgz#6ea87a22117e5211ac43a438d32582eaa1839d53"
+  integrity sha512-pRMO7RGvuKeyJ2R5CkoUhdBi7UmOlzSKZEm1aa9631r6HGKpLbrFe3hNmHozkSQyV7+xf+DLyzG3Od5wpTW6ww==
 
 html2canvas@1.4.1:
   version "1.4.1"

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است