zhongshujie
3 天以前 1695fcd442fe2cefb6d3b63869ad8a72ebd5210a
src/plugin/axios/index.js
@@ -11,6 +11,7 @@
service.interceptors.request.use(
  (config) => {
    let token = localStorage.getItem(myConfig.tokenKey)
    config.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
    if (token) config.headers['Authorization'] = `bearer ${token}`
    return config
  },