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

是否不支持路由地址中带"-" #185

Open
Leeiio opened this issue Aug 7, 2024 · 0 comments
Open

是否不支持路由地址中带"-" #185

Leeiio opened this issue Aug 7, 2024 · 0 comments

Comments

@Leeiio
Copy link

Leeiio commented Aug 7, 2024

比如我定义了这样一个路由

@Post('/list-event-role', { summary: '赛事角色列表' })
  async listEventRole() {
    return this.ok(await this.baseSysRoleService.listEventRole());
  }

在前端的菜单配置里,找不到list-event-role这个权限。生成的eps里是有的

{
"method": "post",
"path": "/list-event-role",
"summary": "赛事角色列表",
"dts": {},
"tag": "",
"prefix": "/admin/base/sys/role",
"ignoreToken": false
}

但是如果我使用service.base.sys.role.listEventRole()去调用请求的话请求的地址又是不对的,地址会变成这样的格式 http://127.0.0.1:9000/dev/admin/base/sys/role/listEventRole 而不是 http://127.0.0.1:9000/dev/admin/base/sys/role/list-event-role

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