From 84c4e2a7ad27e6a0c229187ccded8a5061296f08 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Mon, 7 Apr 2025 12:55:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9A=B0=ED=8A=B8=20=EB=A1=9C?= =?UTF-8?q?=EB=94=A9=20=ED=9B=84=20app=20=EB=A7=88=EC=9A=B0=ED=8A=B8=20?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainEventCalendar.vue | 10 +++--- src/main.js | 44 +++++++++++------------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index b5dd4f5..f7d4360 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -559,11 +559,11 @@ param.append('month', month); param.append('day', day); - if (!weatherStore.dailyWeatherList?.length) { - await weatherStore.getWeatherInfo(); - //dailyWeatherList.value = weatherStore.dailyWeatherList; - console.log('dailyWeatherList.value: ', dailyWeatherList.value); - } + // if (!weatherStore.dailyWeatherList?.length) { + // await weatherStore.getWeatherInfo(); + // //dailyWeatherList.value = weatherStore.dailyWeatherList; + // console.log('dailyWeatherList.value: ', dailyWeatherList.value); + // } // 이벤트 카테고리 호출 await fetchCategoryList(); diff --git a/src/main.js b/src/main.js index ccdad3b..09e6cb1 100644 --- a/src/main.js +++ b/src/main.js @@ -1,31 +1,31 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import piniaPersist from 'pinia-plugin-persist' -import App from './App.vue' -import router from '@/router' -import dayjs from '@p/dayjs' +import { createApp } from 'vue'; +import { createPinia } from 'pinia'; +import piniaPersist from 'pinia-plugin-persist'; +import App from './App.vue'; +import router from '@/router'; +import dayjs from '@p/dayjs'; import ToastModal from '@c/modal/ToastModal.vue'; -import common from '@/common/common.js' -import { useKakao } from 'vue3-kakao-maps/@utils' +import common from '@/common/common.js'; +import { useKakao } from 'vue3-kakao-maps/@utils'; -const pinia = createPinia() -pinia.use(piniaPersist) +const pinia = createPinia(); +pinia.use(piniaPersist); const kakaoApiKey = import.meta.env.VITE_KAKAO_MAP_KEY; -useKakao(kakaoApiKey, ['services']) +useKakao(kakaoApiKey, ['services']); -const app = createApp(App) -app.use(router) - .use(pinia) - .use(common) - .use(dayjs) - .component('ToastModal',ToastModal) - .mount('#app') +const app = createApp(App); +app.use(router).use(pinia).use(common).use(dayjs).component('ToastModal', ToastModal); -if (import.meta.env.MODE === "prod") { +// 라우트 로딩 후 앱 마우트 +router.isReady().then(() => { + app.mount('#app'); +}); + +if (import.meta.env.MODE === 'prod') { const console = window.console || {}; - console.log = function no_console() { }; // console log 막기 - console.warn = function no_console() { }; // console warning 막기 - console.error = function () { }; // console error 막기 + console.log = function no_console() {}; // console log 막기 + console.warn = function no_console() {}; // console warning 막기 + console.error = function () {}; // console error 막기 }