From 46908c0f79e7aab8a3fa41bfdcd8390bbc3659f2 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期日, 04 一月 2026 11:48:15 +0800
Subject: [PATCH] 完善前端二期播种墙初始化和任务完成按钮,后端定期删除日志

---
 项目代码/WCSClient/vue.config.js |   40 +++++++++++++++++-----------------------
 1 files changed, 17 insertions(+), 23 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSClient/vue.config.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSClient/vue.config.js"
index 2428b79..a0dfebe 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSClient/vue.config.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSClient/vue.config.js"
@@ -1,5 +1,3 @@
-// const webpack = require("webpack");
-
 module.exports = {
   productionSourceMap: false,
   lintOnSave: false,
@@ -11,9 +9,13 @@
     }
   },
   css: {
-    //鏌ョ湅CSS灞炰簬鍝釜css鏂囦欢
     sourceMap: true
   },
+  // 寮哄埗杞瘧渚濊禆
+  transpileDependencies: [
+    'vue-router',
+    'vue-draggable-next'
+  ],
   configureWebpack: {
     module: {
       rules: [
@@ -21,33 +23,25 @@
           test: /\.mjs$/,
           include: /node_modules/,
           type: "javascript/auto"
-        },
+        }
       ]
     }
   },
-  //https://cli.vuejs.org/zh/guide/html-and-static-assets.html#html
   chainWebpack: (config) => {
-    // 绉婚櫎 prefetch 鎻掍欢
     config.plugins.delete('prefetch');
-    //鑷笅瀹氫箟title
+    
     config.plugin('html').tap((args) => {
       args[0].title = 'WCS';
       return args;
     });
-
-    // 鎴栬��
-    // 淇敼瀹冪殑閫夐」锛�
-    // config.plugin('prefetch').tap(options => {
-    //   options[0].fileBlacklist = options[0].fileBlacklist || []
-    //   options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
-    //   return options
-    // })
+    
+    // 娣诲姞瀵� mjs 鏂囦欢鐨勫鐞�
+    config.module
+      .rule('mjs')
+      .test(/\.mjs$/)
+      .include
+        .add(/node_modules/)
+        .end()
+      .type('javascript/auto');
   }
-  // configureWebpack: {
-  //     plugins: [
-  //         new webpack.optimize.MinChunkSizePlugin({
-  //             minChunkSize: 100000 // 閫氳繃鍚堝苟灏忎簬 minChunkSize 澶у皬鐨� chunk锛屽皢 chunk 浣撶Н淇濇寔鍦ㄦ寚瀹氬ぇ灏忛檺鍒朵互涓�
-  //         })
-  //     ]
-  // }
-};
+}
\ No newline at end of file

--
Gitblit v1.9.3