From a7bd6e538027d876b3122f21c3b1d34663fb2f07 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期日, 25 一月 2026 14:18:51 +0800
Subject: [PATCH] 优化前端,修复库存托盘编号重复和WCS任务重发
---
项目代码/WMS/WIDESEA_WMSClient/vue.config.js | 53 ++++++++++++++---------------------------------------
1 files changed, 14 insertions(+), 39 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/vue.config.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/vue.config.js"
index 2d3d8d5..7d019d3 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/vue.config.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/vue.config.js"
@@ -1,5 +1,3 @@
-// const webpack = require("webpack");
-
module.exports = {
productionSourceMap: false,
lintOnSave: false,
@@ -11,49 +9,26 @@
}
},
css: {
- //鏌ョ湅CSS灞炰簬鍝釜css鏂囦欢
sourceMap: true
},
- configureWebpack: {
- module: {
- rules: [
- {
- test: /\.mjs$/,
- include: /node_modules/,
- type: "javascript/auto"
- },
- {
- test: /\.s[ac]ss$/,
- use: [
- 'sass-loader'
- ]
- }
- ]
- }
- },
- //https://cli.vuejs.org/zh/guide/html-and-static-assets.html#html
+ // 寮哄埗杞瘧鐗瑰畾鍖�
+ transpileDependencies: [
+ 'vue-router',
+ 'vue-draggable-next'
+ ],
chainWebpack: (config) => {
- // 绉婚櫎 prefetch 鎻掍欢
config.plugins.delete('prefetch');
- //鑷笅瀹氫箟title
+
config.plugin('html').tap((args) => {
args[0].title = 'WMS';
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$/)
+ .type('javascript/auto')
+ .include.add(/node_modules/);
}
- // configureWebpack: {
- // plugins: [
- // new webpack.optimize.MinChunkSizePlugin({
- // minChunkSize: 100000 // 閫氳繃鍚堝苟灏忎簬 minChunkSize 澶у皬鐨� chunk锛屽皢 chunk 浣撶Н淇濇寔鍦ㄦ寚瀹氬ぇ灏忛檺鍒朵互涓�
- // })
- // ]
- // }
-};
+};
\ No newline at end of file
--
Gitblit v1.9.3