修改路由规则.

This commit is contained in:
lijiahang
2025-03-07 15:50:26 +08:00
parent a1dd9eec01
commit 05bc6c1fbb
6 changed files with 23 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ const $vue.moduleConst: AppRouteRecordRaw = {
children: [ children: [
{ {
name: '$vue.featureEntityFirstLower', name: '$vue.featureEntityFirstLower',
path: '/$vue.feature', path: '/$vue.module/$vue.feature',
component: () => import('@/views/$vue.module/$vue.feature/index.vue'), component: () => import('@/views/$vue.module/$vue.feature/index.vue'),
}, },
], ],

View File

@@ -8,17 +8,17 @@ const ASSET_AUDIT: AppRouteRecordRaw = {
children: [ children: [
{ {
name: 'connectLog', name: 'connectLog',
path: '/connect-log', path: '/audit/connect-log',
component: () => import('@/views/asset-audit/connect-log/index.vue'), component: () => import('@/views/asset-audit/connect-log/index.vue'),
}, },
{ {
name: 'connectSession', name: 'connectSession',
path: '/connect-session', path: '/audit/connect-session',
component: () => import('@/views/asset-audit/connect-session/index.vue'), component: () => import('@/views/asset-audit/connect-session/index.vue'),
}, },
{ {
name: 'sftpLog', name: 'sftpLog',
path: '/sftp-log', path: '/audit/sftp-log',
component: () => import('@/views/asset-audit/sftp-log/index.vue'), component: () => import('@/views/asset-audit/sftp-log/index.vue'),
}, },
], ],

View File

@@ -8,19 +8,19 @@ const ASSET: AppRouteRecordRaw = {
children: [ children: [
{ {
name: 'hostList', name: 'hostList',
path: '/host-list', path: '/asset/host',
component: () => import('@/views/asset/host-list/index.vue'), component: () => import('@/views/asset/host-list/index.vue'),
}, { }, {
name: 'hostKey', name: 'hostKey',
path: '/host-key', path: '/asset/host-key',
component: () => import('@/views/asset/host-key/index.vue'), component: () => import('@/views/asset/host-key/index.vue'),
}, { }, {
name: 'hostIdentity', name: 'hostIdentity',
path: '/host-identity', path: '/asset/host-identity',
component: () => import('@/views/asset/host-identity/index.vue'), component: () => import('@/views/asset/host-identity/index.vue'),
}, { }, {
name: 'assetGrant', name: 'assetGrant',
path: '/asset-grant', path: '/asset/grant',
component: () => import('@/views/asset/grant/index.vue'), component: () => import('@/views/asset/grant/index.vue'),
}, },
], ],

View File

@@ -9,37 +9,37 @@ const EXEC: Array<AppRouteRecordRaw> = [
children: [ children: [
{ {
name: 'execCommand', name: 'execCommand',
path: '/exec-command', path: '/exec/command',
component: () => import('@/views/exec/exec-command/index.vue'), component: () => import('@/views/exec/exec-command/index.vue'),
}, },
{ {
name: 'execCommandLog', name: 'execCommandLog',
path: '/exec-log', path: '/exec/command-log',
component: () => import('@/views/exec/exec-command-log/index.vue'), component: () => import('@/views/exec/exec-command-log/index.vue'),
}, },
{ {
name: 'execJob', name: 'execJob',
path: '/exec-job', path: '/exec/job',
component: () => import('@/views/exec/exec-job/index.vue'), component: () => import('@/views/exec/exec-job/index.vue'),
}, },
{ {
name: 'execJobLog', name: 'execJobLog',
path: '/exec-job-log', path: '/exec/job-log',
component: () => import('@/views/exec/exec-job-log/index.vue'), component: () => import('@/views/exec/exec-job-log/index.vue'),
}, },
{ {
name: 'batchUpload', name: 'batchUpload',
path: '/batch-upload', path: '/exec/upload',
component: () => import('@/views/exec/batch-upload/index.vue'), component: () => import('@/views/exec/batch-upload/index.vue'),
}, },
{ {
name: 'uploadTask', name: 'uploadTask',
path: '/upload-task', path: '/exec/upload-task',
component: () => import('@/views/exec/upload-task/index.vue'), component: () => import('@/views/exec/upload-task/index.vue'),
}, },
{ {
name: 'execTemplate', name: 'execTemplate',
path: '/exec-template', path: '/exec/template',
component: () => import('@/views/exec/exec-template/index.vue'), component: () => import('@/views/exec/exec-template/index.vue'),
}, },
], ],
@@ -50,7 +50,7 @@ const EXEC: Array<AppRouteRecordRaw> = [
children: [ children: [
{ {
name: 'execJobLogView', name: 'execJobLogView',
path: '/job-log-view', path: '/exec/job-log/view',
component: () => import('@/views/exec/exec-job-log-view/index.vue'), component: () => import('@/views/exec/exec-job-log-view/index.vue'),
}, },
], ],

View File

@@ -8,17 +8,17 @@ const SYSTEM: AppRouteRecordRaw = {
children: [ children: [
{ {
name: 'systemMenu', name: 'systemMenu',
path: '/menu', path: '/system/menu',
component: () => import('@/views/system/menu/index.vue'), component: () => import('@/views/system/menu/index.vue'),
}, },
{ {
name: 'dictKey', name: 'dictKey',
path: '/dict-key', path: '/system/dict-key',
component: () => import('@/views/system/dict-key/index.vue'), component: () => import('@/views/system/dict-key/index.vue'),
}, },
{ {
name: 'dictValue', name: 'dictValue',
path: '/dict-value', path: '/system/dict-value',
component: () => import('@/views/system/dict-value/index.vue'), component: () => import('@/views/system/dict-value/index.vue'),
}, },
{ {

View File

@@ -8,22 +8,22 @@ const USER: AppRouteRecordRaw = {
children: [ children: [
{ {
name: 'role', name: 'role',
path: '/role', path: '/user/role',
component: () => import('@/views/user/role/index.vue'), component: () => import('@/views/user/role/index.vue'),
}, },
{ {
name: 'user', name: 'user',
path: '/user', path: '/user/list',
component: () => import('@/views/user/user/index.vue'), component: () => import('@/views/user/user/index.vue'),
}, },
{ {
name: 'userInfo', name: 'userInfo',
path: '/user-info', path: '/user/info',
component: () => import('@/views/user/info/index.vue'), component: () => import('@/views/user/info/index.vue'),
}, },
{ {
name: 'operatorLog', name: 'operatorLog',
path: '/operator-log', path: '/user/operator-log',
component: () => import('@/views/user/operator-log/index.vue'), component: () => import('@/views/user/operator-log/index.vue'),
}, },
], ],