Commit 23d83cd4 by 李伟康

修改样式

1 parent 1b3102ec
...@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!