wupengfei
1 天以前 758d8056dc3dbc6bf92c298aa3627e66b933b5a0
apps/taro/src/utils/page.ts
@@ -12,7 +12,7 @@
  if (pages.length > 1) {
    Taro.navigateBack({ delta: delta });
  } else {
    Taro.switchTab({
    RouteHelper.switchTab({
      url: Object.values(TabBarPageRouter)[systemStore.activeTab],
    });
  }
@@ -21,7 +21,7 @@
export function goHome() {
  const systemStore = useSystemStoreWithOut();
  systemStore.setTabIndex(0);
  Taro.switchTab({
  RouteHelper.switchTab({
    url: TabBarPageRouter['Home'],
  });
}
@@ -49,7 +49,14 @@
  }
  static navigateTo(option: Taro.navigateTo.Option) {
    Taro.navigateTo({
    return Taro.navigateTo({
      ...option,
      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 }),
    });