add loadingbar

This commit is contained in:
2023-12-26 23:04:03 +08:00
parent 5f02894e90
commit 840dc080a0
12 changed files with 188 additions and 114 deletions

View 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>