mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
add loadingbar
This commit is contained in:
18
src/components/TempComponent.vue
Normal file
18
src/components/TempComponent.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { useProviderStore } from '@/store/useProviderStore'
|
||||
import { useLoadingBar } from 'naive-ui'
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
// Setup code
|
||||
onMounted(() => {
|
||||
const providerStore = useProviderStore()
|
||||
const loadingBar = useLoadingBar()
|
||||
providerStore.setLoadingBar(loadingBar)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="height: 100vh">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user