From 4ec143f5ff8ca81417fefc08362b4e1d6e3f713c Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 09 Jun 2022 10:48:46 +0800 Subject: [PATCH] 实现主机地址独立管理工具,第二部分 --- 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