라우트 로딩 후 app 마우트 되도록 수정
All checks were successful
LocalNet_front/pipeline/head This commit looks good
All checks were successful
LocalNet_front/pipeline/head This commit looks good
This commit is contained in:
parent
fc32aba4ab
commit
84c4e2a7ad
@ -559,11 +559,11 @@
|
|||||||
param.append('month', month);
|
param.append('month', month);
|
||||||
param.append('day', day);
|
param.append('day', day);
|
||||||
|
|
||||||
if (!weatherStore.dailyWeatherList?.length) {
|
// if (!weatherStore.dailyWeatherList?.length) {
|
||||||
await weatherStore.getWeatherInfo();
|
// await weatherStore.getWeatherInfo();
|
||||||
//dailyWeatherList.value = weatherStore.dailyWeatherList;
|
// //dailyWeatherList.value = weatherStore.dailyWeatherList;
|
||||||
console.log('dailyWeatherList.value: ', dailyWeatherList.value);
|
// console.log('dailyWeatherList.value: ', dailyWeatherList.value);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 이벤트 카테고리 호출
|
// 이벤트 카테고리 호출
|
||||||
await fetchCategoryList();
|
await fetchCategoryList();
|
||||||
|
|||||||
38
src/main.js
38
src/main.js
@ -1,29 +1,29 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue';
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia';
|
||||||
import piniaPersist from 'pinia-plugin-persist'
|
import piniaPersist from 'pinia-plugin-persist';
|
||||||
import App from './App.vue'
|
import App from './App.vue';
|
||||||
import router from '@/router'
|
import router from '@/router';
|
||||||
import dayjs from '@p/dayjs'
|
import dayjs from '@p/dayjs';
|
||||||
import ToastModal from '@c/modal/ToastModal.vue';
|
import ToastModal from '@c/modal/ToastModal.vue';
|
||||||
import common from '@/common/common.js'
|
import common from '@/common/common.js';
|
||||||
import { useKakao } from 'vue3-kakao-maps/@utils'
|
import { useKakao } from 'vue3-kakao-maps/@utils';
|
||||||
|
|
||||||
const pinia = createPinia()
|
const pinia = createPinia();
|
||||||
pinia.use(piniaPersist)
|
pinia.use(piniaPersist);
|
||||||
|
|
||||||
const kakaoApiKey = import.meta.env.VITE_KAKAO_MAP_KEY;
|
const kakaoApiKey = import.meta.env.VITE_KAKAO_MAP_KEY;
|
||||||
|
|
||||||
useKakao(kakaoApiKey, ['services'])
|
useKakao(kakaoApiKey, ['services']);
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App);
|
||||||
app.use(router)
|
app.use(router).use(pinia).use(common).use(dayjs).component('ToastModal', ToastModal);
|
||||||
.use(pinia)
|
|
||||||
.use(common)
|
|
||||||
.use(dayjs)
|
|
||||||
.component('ToastModal',ToastModal)
|
|
||||||
.mount('#app')
|
|
||||||
|
|
||||||
if (import.meta.env.MODE === "prod") {
|
// 라우트 로딩 후 앱 마우트
|
||||||
|
router.isReady().then(() => {
|
||||||
|
app.mount('#app');
|
||||||
|
});
|
||||||
|
|
||||||
|
if (import.meta.env.MODE === 'prod') {
|
||||||
const console = window.console || {};
|
const console = window.console || {};
|
||||||
console.log = function no_console() {}; // console log 막기
|
console.log = function no_console() {}; // console log 막기
|
||||||
console.warn = function no_console() {}; // console warning 막기
|
console.warn = function no_console() {}; // console warning 막기
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user