PPTist/src/App.vue
pipipi-pikachu 8ff1500b53 update
2020-12-22 22:37:26 +08:00

32 lines
587 B
Vue

<template>
<Editor />
</template>
<script lang="ts">
import { defineComponent, onMounted } from 'vue'
import { useStore } from 'vuex'
import { MutationTypes, ActionTypes, State } from '@/store'
import Editor from './views/Editor/index.vue'
export default defineComponent({
name: 'app',
components: {
Editor,
},
setup() {
const store = useStore<State>()
onMounted(() => {
store.commit(MutationTypes.SET_AVAILABLE_FONTS)
store.dispatch(ActionTypes.INIT_SNAPSHOT_DATABASE)
})
},
})
</script>
<style lang="scss">
#app {
height: 100%;
}
</style>