From 9fd5c7103798b275e151260b82cae796f8d426a6 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 23 Sep 2022 21:25:52 +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