fix:修复 因为路由改变跳转的问题
This commit is contained in:
@@ -78,9 +78,9 @@ export default {
|
||||
bus.$emit('clear-asset-filter') // 清除leftMenu左侧菜单过滤条件
|
||||
// if(this.$store.getters.getIdcArr.length===0){return}//如果不存在idc 则不跳转
|
||||
}
|
||||
if (data === 'project' || data === 'module' || data === 'endpoint') {
|
||||
data = 'monitor/' + data
|
||||
}
|
||||
// if (data === 'project' || data === 'module' || data === 'endpoint') {
|
||||
// data = data
|
||||
// }
|
||||
if (data === 'alertList') {
|
||||
data = 'alertMessage'
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ export default {
|
||||
route += 'asset'
|
||||
} else {
|
||||
tableId = type + 'Table'
|
||||
route += 'monitor/' + type
|
||||
route += type
|
||||
}
|
||||
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + tableId)
|
||||
if (!(pageSize && pageSize !== 'undefined')) {
|
||||
|
||||
@@ -664,7 +664,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getModuleData () {
|
||||
this.$get('module', { pageNo: 1, pageSize: -1 }).then(response => {
|
||||
this.$get('monitor/module', { pageNo: 1, pageSize: -1 }).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.moduleSelect = response.data.list
|
||||
this.moduleSelect.forEach((item, index) => {
|
||||
|
||||
@@ -989,9 +989,9 @@ export default {
|
||||
bus.$emit('clear-asset-filter') // 清除leftMenu左侧菜单过滤条件
|
||||
// if(this.$store.getters.getIdcArr.length===0){return}//如果不存在idc 则不跳转
|
||||
}
|
||||
if (data === 'project' || data === 'module' || data === 'endpoint') {
|
||||
data = 'monitor/' + data
|
||||
}
|
||||
// if (data === 'project' || data === 'module' || data === 'endpoint') {
|
||||
// data = 'monitor/' + data
|
||||
// }
|
||||
if (data === 'alertList') {
|
||||
data = 'alertMessage'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user