From ebb543f340b9b81a0a8b616bb257e3a32ef517a3 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Wed, 18 Oct 2023 16:17:32 +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