提交 | 用户 | 时间 | ||
314507 | 1 | import { useAppStoreWithOut } from '@/store/modules/app' |
H | 2 | |
3 | const appStore = useAppStoreWithOut() | |
4 | ||
5 | export const usePageLoading = () => { | |
6 | const loadStart = () => { | |
7 | appStore.setPageLoading(true) | |
8 | } | |
9 | ||
10 | const loadDone = () => { | |
11 | appStore.setPageLoading(false) | |
12 | } | |
13 | ||
14 | return { | |
15 | loadStart, | |
16 | loadDone | |
17 | } | |
18 | } |