This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/src/components/common/mixin/beforeMeta2d.js

35 lines
670 B
JavaScript
Raw Normal View History

2023-02-16 16:33:20 +08:00
export default {
data () {
return {
topoData: {},
querysArray: {},
2023-02-16 18:13:14 +08:00
meta2dType: '',
timeType: 1,
2023-02-16 16:33:20 +08:00
}
},
mounted () {
if (this.meta2dType === 'project') {
setTimeout(() => {
const res = {
topo: {},
elements: [],
timeType: 4
}
this.topoData = res.topo
this.querysArray = res.elements
})
} else {
setTimeout(() => {
const res = {
topo: {},
elements: [],
timeType: 4
}
this.topoData = res.topo
this.querysArray = res.elements
2023-02-16 18:13:14 +08:00
this.timeType = res.timeType || 1
2023-02-16 16:33:20 +08:00
})
}
}
}