From 616a71ebbb82d6143768a17bf4ab84b860bb82e0 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 21 五月 2024 14:53:12 +0800
Subject: [PATCH] 修改产品追溯

---
 vue.config.js |   61 +++++++++++++++++-------------
 1 files changed, 35 insertions(+), 26 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 605ac39..d768c80 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,16 +1,25 @@
+/*** 
+ * @Author licp lichunping@guanfang.com.cn
+ * @Date 2024-05-13 10:35:46
+ * @LastEditors licp lichunping@guanfang.com.cn
+ * @LastEditTime 2024-05-21 14:44:16
+ * @FilePath \mes-ocea-before\vue.config.js
+ * @Description 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 /**
  * 閰嶇疆鍙傝��:
  * https://cli.vuejs.org/zh/config/
  */
-// const url = 'http://192.168.2.7:9999'
-const url = 'http://192.168.32.45:9999'
-// const url = 'http://192.168.0.23:9999'
 
-//  const url = 'http://localhost:9999'
 
-// const url = 'http://ztt-gateway:9999'
+
+const url = 'https://ztms-mes.chinaztt.cn/'
+// const url = 'http://localhost:9999'
+//const url = 'http://192.168.32.45:9999'
+
+
 const localUrl = 'http://localhost:8089'
-//const localUrl = 'http://10.88.15.95:8089'
+// const localUrl = 'http://10.88.15.95:8089'
 const CompressionWebpackPlugin = require('compression-webpack-plugin')
 const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
 const productionGzipExtensions = ['js', 'css']
@@ -29,26 +38,26 @@
   },
   // eslint-disable-next-line
   configureWebpack: (config) => {
-    // if (process.env.NODE_ENV === 'production') {
-    //   // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆
-    //   return {
-    //     plugins: [
-    //       /*new MonacoWebpackPlugin({
-    //         languages: ['javascript', 'css', 'html', 'json']
-    //       }),*/
-    //       new CompressionWebpackPlugin({
-    //         filename: '[path].gz[query]',
-    //         algorithm: 'gzip',
-    //         test: new RegExp(
-    //           '\\.(' + productionGzipExtensions.join('|') + ')$'
-    //         ),
-    //         threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶�
-    //         minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞�
-    //         deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠�
-    //       })
-    //     ]
-    //   }
-    // }
+    if (process.env.NODE_ENV === 'production') {
+      // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆
+      return {
+        plugins: [
+          /*new MonacoWebpackPlugin({
+            languages: ['javascript', 'css', 'html', 'json']
+          }),*/
+          new CompressionWebpackPlugin({
+            filename: '[path].gz[query]',
+            algorithm: 'gzip',
+            test: new RegExp(
+              '\\.(' + productionGzipExtensions.join('|') + ')$'
+            ),
+            threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶�
+            minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞�
+            deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠�
+          })
+        ]
+      }
+    }
   },
   // 閰嶇疆杞彂浠g悊
   devServer: {

--
Gitblit v1.9.3