fix: 修改 首页轮播 层级不对 以及 点击跳转卡顿的问题

This commit is contained in:
zhangyu
2023-03-24 18:17:53 +08:00
parent 20518793ef
commit 164c7c067f
3 changed files with 7 additions and 4 deletions

View File

@@ -774,7 +774,7 @@
position: absolute;
top: 0;
left: 0;
z-index: 10;
z-index: 11;
cursor: pointer;
}
.leaflet-container:hover{

View File

@@ -91,7 +91,10 @@ export default {
})
},
toProject (projectInfo) { // 跳转对应project页面
this.$store.commit('currentProjectChange', projectInfo)
this.$store.commit('currentProjectChange', {
id: projectInfo.id,
name: projectInfo.name
})
this.jumpTo('project')
},
jumpTo (data, id) {
@@ -114,7 +117,7 @@ export default {
},
resize () {
this.allProject.forEach((item, index) => {
this.$refs['topology' + index][0] && this.$refs['topology' + index][0].winResize()
this.$refs['topology' + index][0] && this.$refs['topology' + index][0].topoResize()
})
}
},

View File

@@ -406,7 +406,7 @@ function timeCompute (value, unit, dot = 0) {
return `${value.toFixed(dot)} ${unit}`
}
const units = [
{ unit: 'ns', ascii: 1 },
{ unit: 'ns', ascii: 1000 },
{ unit: 'us', ascii: 1000 },
{ unit: 'ms', ascii: 1000 },
{ unit: 's', ascii: 60 },