add NodeMap component that display an interactive text relation tree + test route
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div id="map">
|
||||
<node-map v-if="data" :data="data" />
|
||||
<div>
|
||||
{{ data }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NodeMap from '@/components/NodeMap'
|
||||
export default {
|
||||
name: 'Home',
|
||||
|
||||
components: {
|
||||
NodeMap
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
text: null,
|
||||
data: null
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
this.$store.dispatch('GET_TREE', 17).then((data) => {
|
||||
this.data = data
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#map {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user