fix(前端):测试取消缓存

This commit is contained in:
chengzhaofeng 2024-12-29 18:46:25 +08:00
parent 770bdfc15e
commit 0fdef04d94
3 changed files with 24 additions and 13 deletions

View File

@ -1,15 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<!--避免微信管理防盗链机制-->
<meta name="referrer" content="no-referrer" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<!--避免微信管理防盗链机制-->
<meta name="referrer" content="no-referrer" />
<link rel="stylesheet" href="<%= BASE_URL %>cdn/animate/3.5.2/animate.css" />
<link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/avue.css" />
<link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/index.css" />

View File

@ -144,6 +144,10 @@
prop="itemDescription"
label="描述">
</el-table-column>
<el-table-column
prop="qualityInspectionStatus"
label="等级">
</el-table-column>
<el-table-column
prop="wmsStorageBin"
label="货格">
@ -152,10 +156,6 @@
prop="qtyOnHand"
label="实盘数量">
</el-table-column>
<el-table-column
prop="qualityInspectionStatus"
label="等级">
</el-table-column>
</el-table>
</el-row>
</div>

View File

@ -9,6 +9,7 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
const path = require('path')
const FileManagerPlugin = require('filemanager-webpack-plugin')
let timeStamp = new Date().getTime();
function resolve(dir) {
return path.join(__dirname, dir)
@ -16,6 +17,7 @@ function resolve(dir) {
module.exports = {
lintOnSave: true,
filenameHashing: false,
productionSourceMap: false,
chainWebpack: (config) => {
const entry = config.entry('app')
@ -48,7 +50,12 @@ module.exports = {
},
css: {
// 忽略 CSS order 顺序警告
extract: { ignoreOrder: true }
extract: {
// 打包后css文件名称添加时间戳
// ignoreOrder: true
filename: `css/[name].${timeStamp}.css`,
chunkFilename: `css/chunk.[id].${timeStamp}.css`,
}
},
configureWebpack: (config) => {
let deleteOriginalAssets = false
@ -103,6 +110,7 @@ module.exports = {
// 開發環境使用
// configure.devtool = 'source-map'
}
config.output.filename = `js/js[name].${timeStamp}.js`
return configure
},
pwa: {
@ -129,5 +137,5 @@ module.exports = {
}
}
}
}
},
}