edu/app/src/App.vue

15 lines
413 B
Vue
Raw Normal View History

2022-08-26 09:52:43 +00:00
<script setup lang="ts">
2022-09-08 08:28:56 +00:00
import { onLaunch } from '@dcloudio/uni-app'
import { useAppStore } from './stores/app'
import { useUserStore } from './stores/user'
const { getConfig } = useAppStore()
const { getUser } = useUserStore()
2022-09-13 09:41:24 +00:00
onLaunch(async () => {
await getConfig()
await getUser()
2022-08-26 09:52:43 +00:00
})
</script>
<style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */
</style>