|
|
|
@ -94,6 +94,8 @@ let loading = null; |
|
|
|
server.interceptors.request.use( |
|
|
|
|
|
|
|
config => { |
|
|
|
let token = localStorage.getItem("token"); |
|
|
|
config.headers["authorization"] = `bearer ${token}` |
|
|
|
// 剔除部分高频接口 主要是交易时的后台操作
|
|
|
|
if (!exclude.find(item => config.url.includes(item))) { |
|
|
|
if (!config.config || config.config.loading) { |
|
|
|
|