Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

不要使用 navigateTo 在 tabbar 之间跳转 #14

Closed
awxiaoxian2020 opened this issue Feb 21, 2024 · 0 comments
Closed

不要使用 navigateTo 在 tabbar 之间跳转 #14

awxiaoxian2020 opened this issue Feb 21, 2024 · 0 comments

Comments

@awxiaoxian2020
Copy link
Member

awxiaoxian2020 commented Feb 21, 2024

在工程师中心跳转到个人中心:

wx.navigateTo({
      url: '/pages/user/index/index.wxml',
    })

时报错:

SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.

由于页面已经在/pages.json中定义为tabBar所以不能通过navigate跳转。

解决措施:
改为

wx.switchTab({
      url: '/pages/user/me/me',
    })

Originally posted by @ProkingDu in #9 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant