From f258c0ba41c40725e15836ee3886118b3fa97d25 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 10 Aug 2023 16:30:44 +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