|
@@ -11,7 +11,6 @@ export async function showFullScreenLoading(store) {
|
|
load.startLoading()
|
|
load.startLoading()
|
|
} else {
|
|
} else {
|
|
await store.dispatch('app/setLoadCount', 1)
|
|
await store.dispatch('app/setLoadCount', 1)
|
|
-
|
|
|
|
clearTimeout(timer)
|
|
clearTimeout(timer)
|
|
timer = null
|
|
timer = null
|
|
}
|
|
}
|
|
@@ -22,6 +21,7 @@ export async function showFullScreenLoading(store) {
|
|
export async function tryHideFullScreenLoading(store) {
|
|
export async function tryHideFullScreenLoading(store) {
|
|
await store.dispatch('app/setLoadCount', -1)
|
|
await store.dispatch('app/setLoadCount', -1)
|
|
if (store.getters.loadCount <= 0 && store.getters.isLoading) {
|
|
if (store.getters.loadCount <= 0 && store.getters.isLoading) {
|
|
|
|
+ if(timer)return
|
|
timer = setTimeout(async () => {
|
|
timer = setTimeout(async () => {
|
|
await store.dispatch('app/resetLoadCount')
|
|
await store.dispatch('app/resetLoadCount')
|
|
await store.dispatch('app/setLoadStatus', false)
|
|
await store.dispatch('app/setLoadStatus', false)
|