add NodeMap component that display an interactive text relation tree + test route

This commit is contained in:
axolotle
2021-02-24 17:35:14 +01:00
parent d46ed9dea8
commit afca9e3de1
3 changed files with 189 additions and 0 deletions
+39
View File
@@ -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>