From e81c782b3e7a632ffb8e32be56fce931a8c89ae6 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期一, 09 二月 2026 08:55:42 +0800
Subject: [PATCH] 修复bug
---
项目代码/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