Skip to content

Commit

Permalink
feat:op菜单新增文件缓存 #2920
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Jan 14, 2025
1 parent 55d704d commit 48934aa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
32 changes: 20 additions & 12 deletions src/frontend/devops-op/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ export const asyncRoutes = [
meta: { title: '文件管理', icon: 'file' },
component: () => import('@/views/node/index')
},
{
path: 'fileCache',
name: ROUTER_NAME_FILE_CACHE,
meta: { title: '缓存管理', icon: 'file' },
component: () => import('@/views/node/FileCache')
},
{
path: 'fileSystem',
name: ROUTER_NAME_FILE_SYSTEM,
Expand Down Expand Up @@ -175,12 +169,6 @@ export const asyncRoutes = [
name: ROUTER_NAME_PROJECT_METRICS,
meta: { title: '仓库大小统计', icon: 'file' },
component: () => import('@/views/node/ProjectMetrics')
},
{
path: 'preloadConfig',
name: ROUTER_NAME_PRELOAD_CONFIG,
meta: { title: '制品预加载配置', icon: 'service-config' },
component: () => import('@/views/preload/index')
}
]
},
Expand Down Expand Up @@ -340,6 +328,26 @@ export const asyncRoutes = [
}
]
},
{
path: '/fileCache',
component: Layout,
meta: { title: '文件缓存', icon: 'file' },
redirect: '/fileCache/fileCacheManage',
children: [
{
path: 'fileCacheManage',
name: ROUTER_NAME_FILE_CACHE,
meta: { title: '缓存管理', icon: 'file' },
component: () => import('@/views/node/FileCache')
},
{
path: 'preloadConfig',
name: ROUTER_NAME_PRELOAD_CONFIG,
meta: { title: '制品预加载配置', icon: 'service-config' },
component: () => import('@/views/preload/index')
}
]
},
// 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true }
]
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/devops-op/src/views/preload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
query.projectId = this.clientQuery.projectId
query.repoName = this.clientQuery.repoName
query.type = this.clientQuery.type
this.$router.push({ path: '/nodes/preloadConfig', query: query })
this.$router.push({ path: '/fileCache/preloadConfig', query: query })
},
onRouteUpdate(route) {
const query = route.query
Expand Down

0 comments on commit 48934aa

Please sign in to comment.