Skip to content

Commit

Permalink
feat(console): 数据服务添加icon (#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpand0508 committed May 11, 2023
1 parent c2ec3b8 commit 727c6c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/console/Wrapper.tsx
Expand Up @@ -229,6 +229,7 @@ const commonRouterConfig: RouterConfig[] = [
]
},
{
icon: [require('./public/static/icon/data-service.svg'), require('./public/static/icon/data-service-hover.svg')],
title: '数据服务',
watchModule: [ConsoleModuleEnum.Middleware],
subRouterConfig: [
Expand Down Expand Up @@ -484,6 +485,10 @@ export class Wrapper extends React.Component<ConsoleWrapperProps, ConsoleWrapper
//追加数据服务菜单
if (!currentRouterConfig?.every(item => item?.watchModule?.includes(ConsoleModuleEnum.Middleware))) {
currentRouterConfig.push({
icon: [
require('./public/static/icon/data-service.svg'),
require('./public/static/icon/data-service-hover.svg')
],
title: '数据服务',
watchModule: [ConsoleModuleEnum.Middleware],
subRouterConfig: [
Expand Down
3 changes: 3 additions & 0 deletions web/console/public/static/icon/data-service-hover.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/console/public/static/icon/data-service.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 727c6c8

Please sign in to comment.