mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-12 18:15:07 +08:00
feat: add vue3(element-plus)
This commit is contained in:
18
yudao-ui-admin-vue3/src/hooks/web/usePageLoading.ts
Normal file
18
yudao-ui-admin-vue3/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