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 {