mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-27 01:05:07 +08:00
初始化项目,自 v1.7.1 版本开始
This commit is contained in:
18
src/hooks/web/usePageLoading.ts
Normal file
18
src/hooks/web/usePageLoading.ts
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user