fix: 修改 首页轮播 层级不对 以及 点击跳转卡顿的问题
This commit is contained in:
@@ -774,7 +774,7 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
z-index: 11;
|
||||
cursor: pointer;
|
||||
}
|
||||
.leaflet-container:hover{
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user