mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
add loadingbar
This commit is contained in:
13
src/store/useProviderStore.ts
Normal file
13
src/store/useProviderStore.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { LoadingBarApi } from 'naive-ui'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useProviderStore = defineStore('provider', () => {
|
||||
const loadingBar = ref<LoadingBarApi>()
|
||||
|
||||
function setLoadingBar(b: LoadingBarApi) {
|
||||
loadingBar.value = b
|
||||
}
|
||||
|
||||
return { loadingBar, setLoadingBar }
|
||||
})
|
||||
Reference in New Issue
Block a user