You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
314 B
TypeScript
19 lines
314 B
TypeScript
import { useAppStoreWithOut } from '@/store/modules/app'
|
|
|
|
const appStore = useAppStoreWithOut()
|
|
|
|
export const usePageLoading = () => {
|
|
const loadStart = () => {
|
|
appStore.setPageLoading(true)
|
|
}
|
|
|
|
const loadDone = () => {
|
|
appStore.setPageLoading(false)
|
|
}
|
|
|
|
return {
|
|
loadStart,
|
|
loadDone
|
|
}
|
|
}
|