From b239b832677bec7de3ac3204acf5b3d67c5b0983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Thu, 28 Aug 2025 15:09:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/index.js b/utils/index.js index af91fb0f..db96283f 100644 --- a/utils/index.js +++ b/utils/index.js @@ -10,6 +10,11 @@ export const picUrl = 'https://test.hshuishang.com'; // 图片地址前缀 * @param {Boolean} options.isLogin - 是否需要校验登录态,默认为 true */ export const NavgateTo = (path, options = {}) => { + // 首页不需要登录验证 + if (path === '/pages/index/index') { + uni.navigateTo({ url: path }); + return; + } const { isLogin = true } = options; const ctoken = uni.getStorageSync('ctoken'); if (isLogin) {