吉安感知网项目-前端
罗广辉
2026-02-05 792fdd51f52b7cb5114150404c6026ffdfc27a57
feat: 代理
1 files modified
6 ■■■■ changed files
applications/mobile-web-view/src/axios.js 6 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/src/axios.js
@@ -48,9 +48,9 @@
        // 初始化错误提示状态
        isErrorShown = false
        //地址为已经配置状态则不添加前缀
        if (!isBase && !isURL(config.url) && !config.url.startsWith(VITE_APP_API)) {
            config.url = VITE_APP_API + config.url
        }
        // if (!isBase && !isURL(config.url) && !config.url.startsWith(VITE_APP_API)) {
        //     config.url = VITE_APP_API + config.url
        // }
        config.url = VITE_APP_ENV === 'development' ? config.url : VITE_APP_XT_URL + config.url
        config.headers['areaCode'] = store.state.user.selectedAreaCode