<template>
    <div class="h-full tumour-home">
        <router-view v-slot="{ Component }">
            <Transition name="route" mode="out-in">
                <component :is="Component"/>
            </Transition>
        </router-view>
    </div>
</template>

<script>
import { getDict } from './api/base.js'
import { useStore } from './store/index.js'

export default {
    created() {
        this.init()
    },
    setup() {
        const store = useStore()
        return { store }
    },
    methods: {
        init() {
            getDict().then(res => {
                this.store.$patch({ dict: res.data })
            })
        }
    }
}
</script>

<style lang="less" scoped>

</style>
