mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-08 11:26:56 +08:00
14 lines
330 B
TypeScript
14 lines
330 B
TypeScript
import { defineStore } from 'pinia'
|
|
import { LoadingBarApi } from 'naive-ui'
|
|
import { ref } from 'vue'
|
|
|
|
export const useLoadingBarStore = defineStore('provider', () => {
|
|
const loadingBar = ref<LoadingBarApi>()
|
|
|
|
function setLoadingBar(b: LoadingBarApi) {
|
|
loadingBar.value = b
|
|
}
|
|
|
|
return { loadingBar, setLoadingBar }
|
|
})
|