From efde8dee4dcb8a0fc8e35bab0e4e0c6a31320e0e Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Fri, 24 May 2024 15:32:07 +0800 Subject: [PATCH] gx --- src/router/index.js | 44 ++--- src/view/echarts_hygiene/eP4.vue | 270 +++++++++++++++++-------------- src/view/hygiene.vue | 10 +- 3 files changed, 178 insertions(+), 146 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f3d31e4..2b69a7d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -71,27 +71,27 @@ function getCookie(cname) { // return '' } -// router.beforeEach((to, form, next) => { -// var token = getCookie('lytoken') -// console.log('token', token) -// if (token == '') { -// window.location.href = -// 'http://220.191.238.50:996/api/login?returnURL=' + -// window.location.href -// } else { -// // http.get("/api/zzdn_event/auditToken?token=" + token).then((res) => { -// // if (res.code == '500') { -// // window.location.href = -// // 'http://220.191.238.50:996/api/login?returnURL=' + -// // window.location.href -// // } else { -// // tools.data.set('token',token) -// // next(); -// // } -// // }); -// tools.data.set('token', token) -// next(); -// } -// }) +router.beforeEach((to, form, next) => { + var token = getCookie('lytoken') + console.log('token', token) + if (token == '') { + window.location.href = + 'http://220.191.238.50:996/api/login?returnURL=' + + window.location.href + } else { + // http.get("/api/zzdn_event/auditToken?token=" + token).then((res) => { + // if (res.code == '500') { + // window.location.href = + // 'http://220.191.238.50:996/api/login?returnURL=' + + // window.location.href + // } else { + // tools.data.set('token',token) + // next(); + // } + // }); + tools.data.set('token', token) + next(); + } +}) export default router \ No newline at end of file diff --git a/src/view/echarts_hygiene/eP4.vue b/src/view/echarts_hygiene/eP4.vue index c75347b..01e110d 100644 --- a/src/view/echarts_hygiene/eP4.vue +++ b/src/view/echarts_hygiene/eP4.vue @@ -1,5 +1,5 @@ - \ No newline at end of file + diff --git a/src/view/hygiene.vue b/src/view/hygiene.vue index 1d57f1d..42b6f8b 100644 --- a/src/view/hygiene.vue +++ b/src/view/hygiene.vue @@ -375,11 +375,11 @@ const getData = async () => { background-size: 100% 100%; } -.left_2 { - background-image: url(@/assets/images/hygiene/left_title_2.png); - background-repeat: no-repeat; - background-size: 100% 100%; -} +// .left_2 { +// background-image: url(@/assets/images/hygiene/left_title_2.png); +// background-repeat: no-repeat; +// background-size: 100% 100%; +// } .left_3 { background-image: url(@/assets/images/hygiene/new_lmb.png);