From 6fa13f030909d07b3c975d8d8c5926821ae9b875 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 10 Oct 2022 16:42:13 +0800 Subject: [PATCH] 上传图片设置30秒请求超时 --- bases/Pilot.js | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bases/Pilot.js b/bases/Pilot.js index 32f2394..7a849af 100644 --- a/bases/Pilot.js +++ b/bases/Pilot.js @@ -4,8 +4,7 @@ */ import Taro, { getCurrentInstance, getCurrentPages } from '@tarojs/taro'; -import { Fetcher } from './Fetcher'; -import { Tools } from '@components/common/Tools'; +import { $hostBoot } from '@components/bases/HostBoot'; import project from '@project'; export class Pilot { @@ -145,7 +144,7 @@ } // 小程序 else if (process.env.TARO_ENV === 'weapp') { - assets2[key] = Fetcher.host + project.host.assetsPath + asset; + assets2[key] = $hostBoot.getHost() + project.host.assetsPath + asset; } }); return assets2; -- Gitblit v1.9.1