fresh available

This commit is contained in:
felinae98
2021-12-15 22:29:54 +08:00
parent 56397bc270
commit 866e4cd2fb
15 changed files with 219 additions and 76 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export const baseUrl = '/bison/api/'
axios.interceptors.request.use(function (config) {
if (config.url && config.url.startsWith(baseUrl) && config.url !== `${baseUrl}auth`
&& config.url !== `${baseUrl}global_conf`) {
const token = sessionStorage.getItem('token');
const token = localStorage.getItem('token');
if (token) {
config.headers['Authorization'] = `Bearer ${token}`;
} else {