From 6379d7a81d8fb8417977d40031cf587d50f69812 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 31 Jul 2023 17:15:08 +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