diff --git a/src/utils/request.js b/src/utils/request.js index 4a5e93f9a..ceea9f84b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -33,9 +33,9 @@ service.interceptors.response.use( response => { /** code为非200是抛错 可结合自己业务进行修改*/ const res = response.data; - if (res.code !== 200) { + if (res.code != 200) { // 50008:非法的token; 50012:其他客户端登录了; 50014:Token 过期了; - if (res.code === 40004 || res.code === 40005 || res.code === 40003) { + if (res.code == 40004 || res.code == 40005 || res.code == 40003) { // eslint-disable-next-line no-undef EventBus.$emit('stop'); // eslint-disable-next-line no-undef diff --git a/src/views/dashboard/echarts/exam.vue b/src/views/dashboard/echarts/exam.vue index 43c41cb00..03e36721e 100644 --- a/src/views/dashboard/echarts/exam.vue +++ b/src/views/dashboard/echarts/exam.vue @@ -1,9 +1,17 @@ + diff --git a/src/views/dashboard/echarts/lesson.vue b/src/views/dashboard/echarts/lesson.vue index 2b186ec9c..48375aac8 100644 --- a/src/views/dashboard/echarts/lesson.vue +++ b/src/views/dashboard/echarts/lesson.vue @@ -4,6 +4,7 @@