feat(Component): Setting component add copy button

This commit is contained in:
陈凯龙
2022-01-21 17:16:56 +08:00
parent ff4dd3afbf
commit e496096539
9 changed files with 142 additions and 20 deletions

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