Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

返回首页_toHome()问题 #34

@Shift-Bloger

Description

@Shift-Bloger

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

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

微信图片_20221215172302

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions