From 21f57b7d48150ed263fab7537f61f784d960f89d Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 14 Jul 2025 08:31:14 +0800 Subject: [PATCH] =?UTF-8?q?navigateTo=20=E6=96=B0=E5=A2=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/common.js b/src/common/common.js index 3384863f..0abbddac 100644 --- a/src/common/common.js +++ b/src/common/common.js @@ -33,8 +33,9 @@ const loading = (title = '加载中', mask = true) => uni.showLoading({ const hideLoading = () => uni.hideLoading() // 保留当前页面,跳转到应用内的某个页面,使用uni.navigateBack可以返回到原页面。 -const navigateTo = url => uni.navigateTo({ - url: url +const navigateTo = (url, data = {}) => uni.navigateTo({ + url: url, + ...data }); // 关闭所有页面,打开到应用内的某个页面。 const reLaunch = url => {