From 88ec36b28e06298ce13e7aa57940f582fec80d21 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GMUNQ1B\\k" <1154079537@qq.com> Date: Tue, 2 Apr 2024 18:41:12 +0800 Subject: [PATCH] 1 --- utils/uniMPevent.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/uniMPevent.js b/utils/uniMPevent.js index 3b414bd..12bd385 100644 --- a/utils/uniMPevent.js +++ b/utils/uniMPevent.js @@ -11,9 +11,11 @@ export const initEvent = () => { // 用户如果没有注册商户 从小程序返回 入驻页面 if (ret.event == 'closeAppToOpenShop') { mp.closeUniMP(ret.fromAppid, (ret) => { - uni.navigateTo({ - url: "/pages/store/settled/index" - }) + setTimeout(() => { + uni.navigateTo({ + url: "/pages/store/settled/index" + }) + }, 200) }); }