WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-11-04 32f26895d72fdebb6bb4f8dceaa3ecd782dc07c5
增加请求代理模式url拼接
1 files modified
6 ■■■■ changed files
bases/Fetcher.js 6 ●●●● patch | view | raw | blame | history
bases/Fetcher.js
@@ -82,8 +82,12 @@
        }
        // 正常模式
        else {
            // 代理模式
            if (typeof project.host.proxyType !== 'undefined' && project.host.proxyType !== 'lc') {
                url = '/proxy' + this._data.urlPrefix[1] + (serSuffix || devSuffix);
            }
            // 开发环境地址
            if (Fetcher.inDevMod) {
            else if (Fetcher.inDevMod) {
                url = this._data.urlPrefix[0] + devSuffix;
            }
            // 生产环境地址