123456789101112131415161718192021222324252627282930313233343536373839 |
- <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>
|