From 86274c1a23a09edcb22461eb4497e3e402b07c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Sat, 15 Nov 2025 11:35:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.ts | 17 +++-------------- src/utils/helper.ts | 1 - 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/app.ts b/src/app.ts index 3ed1d93..c197c67 100644 --- a/src/app.ts +++ b/src/app.ts @@ -24,19 +24,6 @@ class App extends Component { // 这里可以自定义弹窗(或直接默认同意) resolve({ event: 'agree' }); // 同意隐私协议 }); - - // Taro.loadFontFace({ - // family: 'Quicksand', - // source: 'url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf")', - // global: true, // 全局生效 - // success(res) { - // console.log('字体加载成功', res); - // }, - // fail(err) { - // console.error('字体加载失败', err); - // } - // }) - sceneRedirectLogic(options.query, options.path); } componentDidMount() { @@ -45,7 +32,9 @@ class App extends Component { // this.getLocation() } - componentDidShow() { } + componentDidShow(options) { + sceneRedirectLogic(options.query, options.path); + } componentDidHide() { } diff --git a/src/utils/helper.ts b/src/utils/helper.ts index e48b0d3..a223ad3 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -2,7 +2,6 @@ import Taro from "@tarojs/taro"; // 普通函数,不调用 useLoad export const sceneRedirectLogic = (options, defaultPage: string) => { - console.log(options, 12345) if (!options.scene) return; try {