Skip to content

(请教)为啥在Nav.vue组件中写一个setPath方法 #5

@nightmaring

Description

@nightmaring

请问给router-link绑定链接的时候,为啥不直接m.path,而需要写一个setPath方法返回?这样写是有什么特殊含义吗?

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