From 30325edf36cd3be6b555b0cdceffa92698e5c0de Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 11 六月 2025 16:27:48 +0800 Subject: [PATCH] fix: bug --- apps/taro/src/utils/page.ts | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/apps/taro/src/utils/page.ts b/apps/taro/src/utils/page.ts index 5906af5..b9cfaba 100644 --- a/apps/taro/src/utils/page.ts +++ b/apps/taro/src/utils/page.ts @@ -3,10 +3,10 @@ import { useSystemStoreWithOut } from '@/stores/modules/system'; import { query2object, object2query } from '@life-payment/utils'; import { blLifeRecharge } from './blLifeRecharge'; +import { isInAlipay } from '@/utils/env'; export function goBack(delta = 1) { const pages = Taro.getCurrentPages(); - const systemStore = useSystemStoreWithOut(); if (pages.length > 1) { @@ -54,4 +54,11 @@ url: pathAddExtraParam(option.url, { channelId: blLifeRecharge.accountModel.channlesNum }), }); } + + static redirectTo(option: Taro.redirectTo.Option) { + return Taro.redirectTo({ + ...option, + url: pathAddExtraParam(option.url, { channelId: blLifeRecharge.accountModel.channlesNum }), + }); + } } -- Gitblit v1.9.1