Commit 1bd31098 by liyuhang19990520

修改

parent 666646c9
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-16 10:18:36
* @LastEditTime: 2021-12-28 15:00:10
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
......@@ -38,10 +38,10 @@ const _axios = axios.create(config);
_axios.interceptors.request.use(
function (config) {
//判断是否登录
config.headers.BrowserHeader = 'H5';
if (config.url.indexOf('/login/myLoginForm') <= 0) {
if (localStorage.getItem("token")) {
config.headers.Authorization = localStorage.getItem("token");
config.headers.BrowserHeader = 'H5';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment