fix. 메인 로딩 안나오는 현상 수정
This commit is contained in:
@@ -52,7 +52,7 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
||||
return navigateTo(`/${langCode}/brand`, { external: false })
|
||||
}
|
||||
|
||||
// 페이지 이동 시 로딩 시작
|
||||
// 페이지 이동 시 로딩 상태 시작
|
||||
loadingStore.startFullLoading()
|
||||
|
||||
const accessToken = csrGetAccessToken()
|
||||
|
||||
@@ -21,7 +21,7 @@ export const useLoadingStore = defineStore('loadingStore', () => {
|
||||
* Full 로딩
|
||||
*/
|
||||
const startFullLoading = () => {
|
||||
startApiLoading()
|
||||
initializeStore()
|
||||
fullLoading.value = true
|
||||
}
|
||||
const startApiLoading = () => {
|
||||
@@ -36,6 +36,7 @@ export const useLoadingStore = defineStore('loadingStore', () => {
|
||||
}
|
||||
const finishApiLoading = () => {
|
||||
setTimeout(() => {
|
||||
hasApiCallStarted.value = false
|
||||
isPAssApiLoading.value = true
|
||||
}, 300)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user