AppProvider.vue 439 Bytes
<!--
 * @Date: 2025-04-17 13:41:17
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-04-17 13:41:18
 * @FilePath: /reading-club-app/src/providers/AppProvider.vue
 * @Description: 文件描述
-->
<template>
    <slot></slot>
</template>

<script setup>
import { onMounted } from 'vue'
import { useAppStore } from '../stores/app'

const store = useAppStore()

onMounted(() => {
    store.fetchInitialData()
})
</script>