获取-侧边栏数据
GET
/my/menus获取布局页->左侧菜单数据
请求参数
Header 参数
Authorization
string
必需
Bearer token值, 示例: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTUxLCJ1c2VybmFtZSI6Imxhb2xpNjY2NiIsIm5pY2tuYW1lIjoiIiwiZW1haWwiOiIiLCJpYXQiOjE2NTQ2OTg0ODAsImV4cCI6MTY1NDczNDQ4MH0.fGX3kR-HWE5sk3HFXB7R4LXkmHKnqcP3bQKtKqejyfo
示例值:
{{Vue2_BigEvent_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
业务状态码
0正常1异常
message
string
响应消息
data
array [object {4}]
响应数据
indexPath
string
路由路径
title
string
导航标题
icon
string
导航图标
children
array [object {3}]
子菜单数据
示例
成功示例
{
"code": 0,
"message": "获取左侧菜单成功!",
"data": [
{
"indexPath": "/home",
"title": "首页",
"icon": "el-icon-s-home",
"children": null
},
{
"indexPath": "2",
"title": "文章管理",
"icon": "el-icon-s-order",
"children": [
{
"indexPath": "/art-cate",
"title": "文章分类",
"icon": "el-icon-s-data"
},
{
"indexPath": "/art-list",
"title": "文章列表",
"icon": "el-icon-document-copy"
}
]
},
{
"indexPath": "3",
"title": "个人中心",
"icon": "el-icon-user-solid",
"children": [
{
"indexPath": "/user-info",
"title": "基本资料",
"icon": "el-icon-s-operation"
},
{
"indexPath": "/user-avatar",
"title": "更换头像",
"icon": "el-icon-camera"
},
{
"indexPath": "/user-pwd",
"title": "重置密码",
"icon": "el-icon-key"
}
]
}
]
}
最后修改时间: 2 年前