zhongshujie
2025-06-05 9a3baab049df4a32a7b724c5f24cecdbc3e469b6
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
  },