权限树-菜单
GET
/permission/menu/tree请求参数
Header 参数
Authorization
string
可选
示例值:
{{jwt}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {17}]
必需
id
integer
必需
name
string
必需
code
string
必需
type
string
必需
parentId
null
必需
path
string
必需
redirect
string
必需
icon
string
必需
component
string
必需
layout
null
必需
keepAlive
null
必需
method
null
必需
description
null
必需
show
boolean
必需
enable
boolean
必需
order
null
必需
children
array [object {17}]
必需
originUrl
string
必需
示例
{
"code": 0,
"message": "OK",
"data": [
{
"id": 21,
"name": "Dashboard",
"code": "Dashboard",
"type": "",
"parentId": null,
"path": "/",
"redirect": "/dashboard/smart-house",
"icon": "mdi-gauge",
"component": "/src/layout/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null,
"children": [
{
"id": 24,
"name": "Tesla Model S",
"code": "teslaModelS",
"type": "",
"parentId": 21,
"path": "/dashboard/tesla-model-s",
"redirect": "",
"icon": "mdi-alpha-t",
"component": "/src/views/dashboard/teslaModelS.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
},
{
"id": 25,
"name": "Smart House",
"code": "smartHouse",
"type": "",
"parentId": 21,
"path": "/dashboard/smart-house",
"redirect": "",
"icon": "mdi-alpha-s",
"component": "/src/views/dashboard/smartHouse.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
}
]
},
{
"id": 28,
"name": "Componets",
"code": "componets",
"type": "",
"parentId": null,
"path": "/componets",
"redirect": "/componets/table",
"icon": "mdi-cube-scan",
"component": "/src/layout/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null,
"children": [
{
"id": 29,
"name": "Samples",
"code": "samples",
"type": "",
"parentId": 28,
"path": "/componets/samples",
"redirect": "",
"icon": "mdi-alpha-s",
"component": "/src/views/componets/sample.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
},
{
"id": 30,
"name": "table",
"code": "Table",
"type": "",
"parentId": 28,
"path": "/componets/table",
"redirect": "",
"icon": "mdi-alpha-t",
"component": "/src/views/componets/table.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
},
{
"id": 31,
"name": "calendar",
"code": "Calendar",
"type": "",
"parentId": 28,
"path": "/componets/calendar",
"redirect": "",
"icon": "mdi-alphac",
"component": "/src/views/componets/calendar.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
}
]
},
{
"id": 32,
"name": "Graphics",
"code": "graphics",
"type": "",
"parentId": null,
"path": "/graphics",
"redirect": "/graphics/babylonjs",
"icon": "mdi-image",
"component": "/src/layout/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null,
"children": [
{
"id": 33,
"name": "Three.js",
"code": "three-js",
"type": "",
"parentId": 32,
"path": "/graphics/three.js",
"redirect": "",
"icon": "mdi-alpha-t",
"component": "/src/views/graphics/threeJs.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
},
{
"id": 34,
"name": "Pixi.js",
"code": "Pixi-js",
"type": "",
"parentId": 32,
"path": "/graphics/pixi-js",
"redirect": "",
"icon": "mdi-alpha-p",
"component": "/src/views/graphics/pixiJs.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
},
{
"id": 35,
"name": "Babylon.js",
"code": "babylon-js",
"type": "",
"parentId": 32,
"path": "/graphics/babylon.js",
"redirect": "",
"icon": "mdi-alpha-b",
"component": "/src/views/graphics/babylonjs.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
}
]
},
{
"id": 36,
"name": "Editor",
"code": "editor",
"type": "",
"parentId": null,
"path": "/editor",
"redirect": "/editor/oreo-editor",
"icon": "mdi-view-module",
"component": "/src/layout/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null,
"children": [
{
"id": 37,
"name": "Oreo Editor",
"code": "oreo-editor",
"type": "",
"parentId": 36,
"path": "/editor/oreo-editor",
"redirect": "",
"icon": "mdi-alpha-o",
"component": "/src/views/oreo-editor/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
}
]
},
{
"id": 38,
"name": "Role-Based Access Control",
"code": "RBAC",
"type": "",
"parentId": null,
"path": "/role-based-access-control",
"redirect": "/role-based-access-control/rbac",
"icon": "mdi-account-supervisor-circle",
"component": "/src/layout/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null,
"children": [
{
"id": 39,
"name": "RBAC",
"code": "x",
"type": "",
"parentId": 38,
"path": "/role-based-access-control/rbac",
"redirect": "",
"icon": "mdi-alpha-r",
"component": "/src/views/rbac/index.vue",
"layout": null,
"keepAlive": null,
"method": null,
"description": null,
"show": true,
"enable": true,
"order": null
}
]
}
],
"originUrl": "/role/permissions/tree"
}
最后修改时间: 1 个月前