|
@@ -5,7 +5,8 @@ import config from '@/store/module/config'
|
|
import { app } from '@/boot-app.js'
|
|
import { app } from '@/boot-app.js'
|
|
const NO_ACCESS_API = [
|
|
const NO_ACCESS_API = [
|
|
'/core/system-info',
|
|
'/core/system-info',
|
|
- '/oauth2/login'
|
|
|
|
|
|
+ '/oauth2/login',
|
|
|
|
+ '/teacher/init/get-school-list'
|
|
]
|
|
]
|
|
const NO_AUTH_API = [
|
|
const NO_AUTH_API = [
|
|
'/teacher/init/get-teacher-info',
|
|
'/teacher/init/get-teacher-info',
|
|
@@ -105,6 +106,7 @@ axios.interceptors.response.use(
|
|
return response
|
|
return response
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
|
|
+ console.log(error)
|
|
if (error.response && error.response.status === 401) {
|
|
if (error.response && error.response.status === 401) {
|
|
localStorage.clear()
|
|
localStorage.clear()
|
|
window.location.href = window.location.origin + '/login'
|
|
window.location.href = window.location.origin + '/login'
|