From 363145d7531cc97f842d5b7a4e520ac870737065 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 31 Mar 2023 15:21:56 +0800 Subject: [PATCH] 调整跨端通讯接收中心,提取部分公共代码到基类 --- forms/chinaArea/ChinaLocations.weapp.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/chinaArea/ChinaLocations.weapp.js b/forms/chinaArea/ChinaLocations.weapp.js index c9fa3c0..8a92430 100644 --- a/forms/chinaArea/ChinaLocations.weapp.js +++ b/forms/chinaArea/ChinaLocations.weapp.js @@ -4,15 +4,15 @@ */ import Taro from '@tarojs/taro'; -import { Fetcher } from '@components/bases/Fetcher'; import project from '@project'; +import { $hostBoot } from '@components/bases/HostBoot'; const locationTree = []; let ChinaLocationData = {}; let readyCallback = () => { }; Taro.request({ - url: Fetcher.host + project.host.assetsPath + '/datas/ChinaLocation.json', + url: $hostBoot.getHost() + project.host.assetsPath + '/datas/ChinaLocation.json', header: { 'X-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', -- Gitblit v1.9.1