Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 23d83cd4
authored
Aug 24, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
1b3102ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
src/router/router.js
src/router/router.js
View file @
23d83cd
...
@@ -27,9 +27,7 @@ function createRouter () {
...
@@ -27,9 +27,7 @@ function createRouter () {
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
/* 路由发生变化修改页面title */
/* 路由发生变化修改页面title */
let
title
=
util
.
getLocalStorage
(
'wx_scrm_page_title'
)
||
' '
if
(
to
.
meta
.
title
)
store
.
dispatch
(
'setPageMeta'
,
to
.
meta
)
if
(
to
.
meta
.
title
)
store
.
dispatch
(
'setPageMeta'
,
to
.
meta
)
else
store
.
dispatch
(
'setPageMeta'
,
{
title
})
store
.
commit
(
'SET_LAST_PATH'
,
to
.
name
)
store
.
commit
(
'SET_LAST_PATH'
,
to
.
name
)
/* 路由发生变化修改页面背景色 */
/* 路由发生变化修改页面背景色 */
if
(
to
.
meta
.
backgroundColor
)
document
.
documentElement
.
style
.
backgroundColor
=
to
.
meta
.
backgroundColor
if
(
to
.
meta
.
backgroundColor
)
document
.
documentElement
.
style
.
backgroundColor
=
to
.
meta
.
backgroundColor
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment