123456789101112131415161718 |
- 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
- }
- }
|