mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-03-07 09:17:45 +08:00
45 lines
754 B
Vue
45 lines
754 B
Vue
<template>
|
|
<div class="container">
|
|
<template v-if="show">
|
|
<Toolbar></Toolbar>
|
|
<Edit></Edit>
|
|
</template>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Toolbar from "./components/Toolbar";
|
|
import Edit from "./components/Edit";
|
|
import { mapState, mapActions } from "vuex";
|
|
|
|
export default {
|
|
name: "Index",
|
|
components: {
|
|
Toolbar,
|
|
Edit,
|
|
},
|
|
data() {
|
|
return {
|
|
show: false,
|
|
};
|
|
},
|
|
async created() {
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: "正在加载,请稍后...",
|
|
});
|
|
await this.getUserMindMapData();
|
|
this.show = true;
|
|
loading.close();
|
|
},
|
|
methods: {
|
|
...mapActions(["getUserMindMapData"]),
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.container {
|
|
}
|
|
</style>
|