diff --git a/nezha-fronted/src/components/common/popBox/guide.vue b/nezha-fronted/src/components/common/popBox/guide.vue index b52f2e85c..41ee58d58 100644 --- a/nezha-fronted/src/components/common/popBox/guide.vue +++ b/nezha-fronted/src/components/common/popBox/guide.vue @@ -100,7 +100,7 @@ export default { permissionCode: 'asset_view' }, { - route: '/monitor/project', + route: '/project', title: this.$t('overall.monitor'), icon: 'nz-icon nz-icon-menu-project', tip: this.$t('guide.monitorTip'), @@ -238,7 +238,7 @@ export default { } this.$emit('close') this.$router.push({ - path: '/monitor/project', + path: '/project', query: { t: +new Date(), add: 'project' @@ -252,7 +252,7 @@ export default { } this.$emit('close') this.$router.push({ - path: '/monitor/module', + path: '/module', query: { t: +new Date(), add: 'module' @@ -266,7 +266,7 @@ export default { } this.$emit('close') this.$router.push({ - path: '/monitor/endpoint', + path: '/endpoint', query: { t: +new Date(), add: 'endpoint' @@ -280,7 +280,7 @@ export default { } this.$emit('close') this.$router.push({ - path: '/monitor/endpoint', + path: '/endpoint', query: { t: +new Date(), importEndpoint: 'importEndpoint' diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index effebc2c2..9b9583bd2 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -1475,7 +1475,7 @@ export default { if (this.$route.path === '/assetLabel') { this.getGroupData() } - if (this.$route.path === '/monitor/module') { + if (this.$route.path === '/module') { this.getProjectData() } if (this.$route.path === '/alertRule') { diff --git a/nezha-fronted/src/components/common/table/settings/projectTable.vue b/nezha-fronted/src/components/common/table/settings/projectTable.vue index 69255da5a..4608328bd 100644 --- a/nezha-fronted/src/components/common/table/settings/projectTable.vue +++ b/nezha-fronted/src/components/common/table/settings/projectTable.vue @@ -160,7 +160,7 @@ export default { }, jumpModule (row) { localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name])) - this.$router.push({ path: '/monitor/module' }) + this.$router.push({ path: '/module' }) }, jumpAlertMessage (row) { localStorage.setItem('alertMessageProjectId', row.id) @@ -168,7 +168,7 @@ export default { }, jumpEndpoint (row) { localStorage.setItem('endpointProjectId', row.id) - this.$router.push({ path: '/monitor/endpoint' }) + this.$router.push({ path: '/endpoint' }) } }, computed: { diff --git a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue index 9e5060c78..ed9c938c9 100644 --- a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue +++ b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue @@ -618,7 +618,7 @@ export default { this.$get(this.url, params).then(response => { this.tools.loading = false if (response.code === 200) { - if (response.statistics && this.$route.path === '/monitor/endpoint') { + if (response.statistics && this.$route.path === '/endpoint') { this.setSearchData(response.statistics) } for (let i = 0; i < response.data.list.length; i++) { diff --git a/nezha-fronted/src/router/index.js b/nezha-fronted/src/router/index.js index 33096d780..eaaaed350 100644 --- a/nezha-fronted/src/router/index.js +++ b/nezha-fronted/src/router/index.js @@ -34,16 +34,16 @@ export default new Router({ component: resolve => require(['../components/page/dashboard/overview/overview.vue'], resolve) }, { - path: '/monitor/project', + path: '/project', component: resolve => require(['../components/page/monitor/project/index.vue'], resolve) }, { - path: '/monitor/module', - name: '/monitor/module', + path: '/module', + name: '/module', component: resolve => require(['../components/page/monitor/module/moduleList.vue'], resolve) }, { - path: '/monitor/endpoint', + path: '/endpoint', component: resolve => require(['../components/page/monitor/endpoint/endpointList.vue'], resolve) }, {