mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
19 lines
413 B
Vue
19 lines
413 B
Vue
<script setup lang="ts">
|
|
import { useLoadingBarStore } from '@/store/useLoadingBarStore'
|
|
import { useLoadingBar } from 'naive-ui'
|
|
import { onMounted } from 'vue'
|
|
|
|
// Setup code
|
|
onMounted(() => {
|
|
const providerStore = useLoadingBarStore()
|
|
const loadingBar = useLoadingBar()
|
|
providerStore.setLoadingBar(loadingBar)
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div style="height: 100vh">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|