| | |
| | | import store from '@/store' |
| | | import { getToken } from '@/utils/auth' |
| | | import errorCode from '@/utils/errorCode' |
| | | import cache from '@/plugins/cache' |
| | | |
| | | |
| | | axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' |
| | | // 创建axios实例 |
| | |
| | | // request拦截器 |
| | | service.interceptors.request.use(config => { |
| | | // 是否需要设置 token |
| | | const isToken = (config.headers || {}).isToken === false |
| | | // const isToken = (config.headers || {}).isToken === false |
| | | const isToken = false; |
| | | const isRepeatSubmit = (config.headers || {}).repeatSubmit === false |
| | | |
| | | if (getToken() && !isToken) { |