Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

返回首页_toHome()问题 #34

Open
Tikko118 opened this issue Dec 15, 2022 · 0 comments
Open

返回首页_toHome()问题 #34

Tikko118 opened this issue Dec 15, 2022 · 0 comments

Comments

@Tikko118
Copy link

Tikko118 commented Dec 15, 2022

把单独页面添加编译模式时,因第一次加载的页面不是 config/ColurUI.js 声明的 congif.homePath 页面 。
导致返回 和返回首页都失效 , 返回的错误里看到当前页面的路径和目标跳转页面的路径一起加进去了 。

因为我的第一个页面为tabbar 所以改成switchtab
_toHome() {
wx.switchTab({
url: this.data.$cuStore.sys_home_page
});
},

微信图片_20221215172302

最后我把 config/ColurUI.js 里的 homePath 删掉了恢复正常。

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

No branches or pull requests

1 participant