feat: topo重构 (40%)
This commit is contained in:
32
nezha-fronted/src/components/common/mixin/beforeMeta2d.js
Normal file
32
nezha-fronted/src/components/common/mixin/beforeMeta2d.js
Normal file
@@ -0,0 +1,32 @@
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
topoData: {},
|
||||
querysArray: {},
|
||||
meta2dType: ''
|
||||
}
|
||||
},
|
||||
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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user