diff --git a/src/frontend/devops-op/src/router/index.js b/src/frontend/devops-op/src/router/index.js index fab87ed73c..26fff635ec 100644 --- a/src/frontend/devops-op/src/router/index.js +++ b/src/frontend/devops-op/src/router/index.js @@ -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, @@ -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') } ] }, @@ -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 } ] diff --git a/src/frontend/devops-op/src/views/preload/index.vue b/src/frontend/devops-op/src/views/preload/index.vue index fd887137b6..61ec6882a5 100644 --- a/src/frontend/devops-op/src/views/preload/index.vue +++ b/src/frontend/devops-op/src/views/preload/index.vue @@ -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