feat(web): 添加资源 ID 并优化相关功能
- 在 WareController 中添加 resourceId 字段 - 更新前端市场页面,将 targetId映射为 resourceId - 修改权限管理页面图标 - 移除不必要的 console.log 语句
This commit is contained in:
@@ -28,13 +28,10 @@ export function tabMarket() {
|
||||
payload.data = payload.data.map(i => {
|
||||
return {
|
||||
...i,
|
||||
targetId: i.id
|
||||
targetId: i.resourceId,
|
||||
}
|
||||
})
|
||||
console.log(payload, response, api, context)
|
||||
return {
|
||||
...payload
|
||||
}
|
||||
return payload
|
||||
}
|
||||
},
|
||||
...crudCommonOptions(),
|
||||
|
||||
@@ -27,7 +27,7 @@ export function tabPermissions() {
|
||||
return {
|
||||
visibleOn: userOnly,
|
||||
title: '权属管理',
|
||||
icon: 'fa fa-user-shield',
|
||||
icon: 'fa fa-key',
|
||||
reload: true,
|
||||
body: {
|
||||
type: 'tabs',
|
||||
|
||||
Reference in New Issue
Block a user