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

[新功能需求] 类型Route能否加入needLogin #26

@Oyh

Description

@Oyh

这个功能解决了什么问题?

集成了@uni-helper/vite-plugin-uni-pages,可以设置页面的needLogin,beforeEach和afterEach输出也能显示有该字段,但是默认的ts类型没有

你期望的 API 是什么样子的?

router.beforeEach((to, from, next) => {
if (to.needLogin) {
// do something
} else {
next()
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions