瀏覽代碼

api 验证

liqk 3 年之前
父節點
當前提交
f820e2d7d5
共有 1 個文件被更改,包括 3 次插入1 次删除
  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'