智慧园区前端大屏
shuishen
2024-12-16 14230ac0316d1e403c54b5a73430bad8ebad00e7
src/utils/http.js
@@ -48,8 +48,11 @@
axios.interceptors.request.use(
  config => {
    const store = useLogin()
    const flag = config.localJSON || false
    //地址为已经配置状态则不添加前缀
    if (!isURL(config.url) && !config.url.startsWith(baseUrl)) {
    if (!isURL(config.url) && !config.url.startsWith(baseUrl) && !flag) {
      config.url = baseUrl + config.url
    }