Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
weChatFlowApprove
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
weChatFlowApprove
Commits
d91b3f08
Commit
d91b3f08
authored
Nov 21, 2025
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存调整
parent
075c3896
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
index.html
public/index.html
+4
-0
index.js
src/router/index.js
+4
-1
vue.config.js
vue.config.js
+8
-1
No files found.
public/index.html
View file @
d91b3f08
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
name=
"viewport"
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
/>
<!-- 禁用缓存,解决企业微信缓存问题 -->
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Expires"
content=
"0"
/>
<!-- 点击无高光 -->
<!-- 点击无高光 -->
<meta
name=
"msapplication-tap-highlight"
content=
"no"
/>
<meta
name=
"msapplication-tap-highlight"
content=
"no"
/>
<!-- uc强制竖屏 -->
<!-- uc强制竖屏 -->
...
...
src/router/index.js
View file @
d91b3f08
...
@@ -24,7 +24,10 @@ export const globalRouter = [
...
@@ -24,7 +24,10 @@ export const globalRouter = [
{
{
path
:
'/ship-approval'
,
path
:
'/ship-approval'
,
name
:
'ShipApproval'
,
name
:
'ShipApproval'
,
component
:
()
=>
import
(
'@/views/ship-approval/ShipApproval.vue'
)
component
:
()
=>
import
(
'@/views/ship-approval/ShipApproval.vue'
),
meta
:
{
noCache
:
true
// 标记为不缓存
}
},
},
{
{
path
:
'/invoice-occupancy-detail'
,
path
:
'/invoice-occupancy-detail'
,
...
...
vue.config.js
View file @
d91b3f08
...
@@ -28,6 +28,8 @@ module.exports = {
...
@@ -28,6 +28,8 @@ module.exports = {
}
}
},
},
productionSourceMap
:
false
,
productionSourceMap
:
false
,
// 文件名添加hash,避免企业微信缓存问题
filenameHashing
:
true
,
configureWebpack
:
{
configureWebpack
:
{
resolve
:
{
resolve
:
{
alias
:
{
alias
:
{
...
@@ -35,6 +37,11 @@ module.exports = {
...
@@ -35,6 +37,11 @@ module.exports = {
'@img'
:
path
.
resolve
(
__dirname
,
'./src/assets/images'
)
'@img'
:
path
.
resolve
(
__dirname
,
'./src/assets/images'
)
}
}
},
},
plugins
:
[]
plugins
:
[],
output
:
{
// 确保文件名包含hash
filename
:
process
.
env
.
NODE_ENV
===
'production'
?
'js/[name].[contenthash:8].js'
:
'js/[name].js'
,
chunkFilename
:
process
.
env
.
NODE_ENV
===
'production'
?
'js/[name].[contenthash:8].js'
:
'js/[name].js'
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment