Browse Source

Merge branch 'jiangmeng' into jiangmeng2.0

tangning 3 weeks ago
parent
commit
76cb536365
3 changed files with 41 additions and 1 deletions
  1. 39 0
      .env.qingyuan
  2. 1 0
      package.json
  3. 1 1
      src/views/mediaLibrary/list.vue

+ 39 - 0
.env.qingyuan

@@ -0,0 +1,39 @@
+NODE_ENV=production
+# Whether to open mock
+VITE_USE_MOCK = true
+
+# public path
+VITE_PUBLIC_PATH = ./
+
+# Delete console
+VITE_DROP_CONSOLE = true
+
+# Whether to enable gzip or brotli compression
+# Optional: gzip | brotli | none
+# If you need multiple forms, you can use `,` to separate
+VITE_BUILD_COMPRESS = 'none'
+
+# Whether to delete origin files when using compress, default false
+VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
+
+# Basic interface address SPA
+VITE_GLOB_API_URL=
+
+# File upload address, optional
+# It can be forwarded by nginx or write the actual address directly
+VITE_GLOB_UPLOAD_URL=/service/manage/common/upload/files
+
+# Interface prefix
+VITE_GLOB_API_URL_PREFIX=
+
+# Whether to enable image compression
+VITE_USE_IMAGEMIN= true
+
+# use pwa
+VITE_USE_PWA = false
+
+# Is it compatible with older browsers
+VITE_LEGACY = false
+
+
+VITE_GLOB_APP_TITLE = 清远公安

+ 1 - 0
package.json

@@ -14,6 +14,7 @@
     "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts",
     "build:mingjing": "cross-env NODE_ENV=production vite build --mode mingjing && esno ./build/script/postBuild.ts",
     "build:guangzhou": "cross-env NODE_ENV=production vite build --mode guangzhou && esno ./build/script/postBuild.ts",
+    "build:qingyuan": "cross-env NODE_ENV=production vite build --mode qingyuan && esno ./build/script/postBuild.ts",
     "build:no-cache": "yarn clean:cache && npm run build",
     "report": "cross-env REPORT=true npm run build",
     "type:check": "vue-tsc --noEmit --skipLibCheck",

+ 1 - 1
src/views/mediaLibrary/list.vue

@@ -432,7 +432,7 @@
           }
           let url = `/code/index.html?title=${record.fileName}&type=${record.fileFormat}&fileUrl=${
             record.fileUrl
-          }&convertType=${record.convertType}${record.wgs84 ? wgs84 : ''}#/sign-model`;
+          }&convertType=${record.convertType||''}${record.wgs84 ? wgs84 : ''}#/sign-model`;
           return window.open(url);
         } else {
           return window.open(record.fileUrl);