Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
a8af82d0
Commit
a8af82d0
authored
Aug 26, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/fix_name' into 'master'
fix: 修改打包名称 See merge request
!91
parents
218643a8
8fc1c52c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
index.js
src/router/index.js
+1
-1
UserFamily.vue
src/views/User/modules/UserFamily.vue
+2
-2
vue.config.js
vue.config.js
+6
-3
No files found.
src/router/index.js
View file @
a8af82d0
...
...
@@ -38,7 +38,7 @@ router.beforeEach((to, from, next) => {
// 路由异常错误处理,尝试解析一个异步组件时发生错误,重新渲染目标页面
router
.
onError
(
error
=>
{
console
.
log
(
"
router error:
"
,
error
.
message
);
const
pattern
=
/Loading chunk
(\d)
+ failed
/g
;
const
pattern
=
/Loading chunk/g
;
const
isChunkLoadFailed
=
error
.
message
.
match
(
pattern
);
const
targetPath
=
router
.
history
.
pending
.
fullPath
;
if
(
isChunkLoadFailed
)
{
...
...
src/views/User/modules/UserFamily.vue
View file @
a8af82d0
...
...
@@ -119,7 +119,7 @@ export default {
localStorage
.
remove
(
params
.
itype
+
"
DetailFormData
"
);
}
else
if
(
path
===
"
/policy/detail
"
&&
params
.
orderNo
)
{
pathObj
=
`
${
path
}
/
${
params
.
orderNo
}
`
;
}
else
{
}
else
if
(
path
===
"
/user/family
"
)
{
pathObj
=
path
;
}
...
...
vue.config.js
View file @
a8af82d0
...
...
@@ -84,9 +84,12 @@ module.exports = {
config
.
optimization
.
runtimeChunk
(
"
single
"
);
return
config
;
},
configureWebpack
:
config
=>
{
// 添加sentry插件
config
.
plugins
.
push
(
new
SentryPlugin
(
SentryConfig
));
configureWebpack
:
{
plugins
:
[
new
SentryPlugin
(
SentryConfig
)],
output
:
{
filename
:
"
js/[name].[chunkhash:5].js
"
,
chunkFilename
:
"
js/[name].[chunkhash:5].js
"
}
},
lintOnSave
:
true
,
runtimeCompiler
:
false
,
// 是否使用包含运行时编译器的 Vue 构建版本
...
...
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