unknown
2024-06-03 0b17cbbba7c0875a6413361a95b9bef508b27444
src/plugin/axios/index.js
@@ -3,7 +3,7 @@
// import toolClass from '@/assets/js/toolClass.js'
// 创建 axios 实例
const service = axios.create({
  baseURL: myConfig.requestCtx,
  baseURL: process.env.VUE_APP_API_URL,
  timeout: myConfig.requestTimeOut // 请求超时时间
})
@@ -12,6 +12,7 @@
  (config) => {
    let token = localStorage.getItem(myConfig.tokenKey)
    if (token) config.headers['Authorization'] = `bearer ${token}`
    console.log(localStorage.getItem(myConfig.tokenKey),"---"+8989899)
    return config
  },
  (error) => {