mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
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 }
|
|
}) |