diff --git a/src/router/index.js b/src/router/index.js
index 2b69a7d..f3d31e4 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/utils/request.js b/src/utils/request.js
index 7ce055b..e141e71 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -21,34 +21,34 @@ axios.interceptors.request.use(
);
// HTTP response 拦截器
-axios.interceptors.response.use(
- (response) => {
- return response;
- },
- (error) => {
- if (error.response) {
- if (error.response.status == 401) {
- ElMessage.error("请重新登录!");
- // window.location.href = '/#/login?returnURL=' + window.location.href
- window.location.href =
- 'http://220.191.238.50:996/api/login?returnURL=' +
- window.location.href
- } else if (error.response.status == 404) {
- ElMessage.error("Status:404,正在请求不存在的服务器记录!");
- } else if (error.response.status == 500) {
- ElMessage.error({
- title: '请求错误',
- message: "Status:500,服务器发生错误!"
- });
- } else {
- ElMessage.error(`Status:${error.response.status},未知错误!`);
- }
- } else {
- ElMessage.error("请求服务器无响应!");
- }
- return Promise.reject(error.response);
- }
-);
+// axios.interceptors.response.use(
+// (response) => {
+// return response;
+// },
+// (error) => {
+// if (error.response) {
+// if (error.response.status == 401) {
+// ElMessage.error("请重新登录!");
+// // window.location.href = '/#/login?returnURL=' + window.location.href
+// window.location.href =
+// 'http://220.191.238.50:996/api/login?returnURL=' +
+// window.location.href
+// } else if (error.response.status == 404) {
+// ElMessage.error("Status:404,正在请求不存在的服务器记录!");
+// } else if (error.response.status == 500) {
+// ElMessage.error({
+// title: '请求错误',
+// message: "Status:500,服务器发生错误!"
+// });
+// } else {
+// ElMessage.error(`Status:${error.response.status},未知错误!`);
+// }
+// } else {
+// ElMessage.error("请求服务器无响应!");
+// }
+// return Promise.reject(error.response);
+// }
+// );
var http = {
diff --git a/src/view/hygiene.vue b/src/view/hygiene.vue
index cfbbca5..ff17bde 100644
--- a/src/view/hygiene.vue
+++ b/src/view/hygiene.vue
@@ -30,16 +30,24 @@
/>
-