Browse Source

api 验证

liqk 3 years ago
parent
commit
f820e2d7d5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      TEAMModelOS/ClientApp/src/api/http.js

+ 3 - 1
TEAMModelOS/ClientApp/src/api/http.js

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