查看常量路由(公共路由)
GET
/api/v1/route/constant-routes查看常量路由
:return:
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
array [object {5}]
必需
name
string
必需
path
string
必需
component
string
必需
meta
object
必需
props
boolean
可选
示例
{
"code": "0000",
"msg": "OK",
"data": [
{
"name": "login",
"path": "/login",
"component": "layout.blank$view.login",
"meta": {
"title": "login",
"i18nKey": "route.login",
"constant": true,
"hideInMenu": true
},
"props": true
},
{
"name": "403",
"path": "/403",
"component": "layout.blank$view.403",
"meta": {
"title": "403",
"i18nKey": "route.403",
"constant": true,
"hideInMenu": true
}
},
{
"name": "404",
"path": "/404",
"component": "layout.blank$view.404",
"meta": {
"title": "404",
"i18nKey": "route.404",
"constant": true,
"hideInMenu": true
}
},
{
"name": "500",
"path": "/500",
"component": "layout.blank$view.500",
"meta": {
"title": "500",
"i18nKey": "route.500",
"constant": true,
"hideInMenu": true
}
}
]
}
最后修改时间: 6 个月前