diff --git a/build/script/postBuild.ts b/build/script/postBuild.ts index 79c5e8fb..e1554bff 100644 --- a/build/script/postBuild.ts +++ b/build/script/postBuild.ts @@ -11,7 +11,7 @@ export const runBuild = async () => { // Generate configuration file if (!argvList.includes('disabled-config')) { - await runBuildConfig(); + runBuildConfig(); } console.log(`✨ ${chalk.cyan(`[${pkg.name}]`)}` + ' - build successfully!'); diff --git a/build/utils.ts b/build/utils.ts index 7f61a09a..2eb986ac 100644 --- a/build/utils.ts +++ b/build/utils.ts @@ -31,7 +31,9 @@ export function wrapperEnv(envConf: Recordable): ViteEnv { if (envName === 'VITE_PROXY') { try { realName = JSON.parse(realName); - } catch (error) {} + } catch (error) { + realName = ''; + } } ret[envName] = realName; if (typeof realName === 'string') { diff --git a/src/layouts/default/header/components/notify/NoticeList.vue b/src/layouts/default/header/components/notify/NoticeList.vue index 1a7c87b2..441010ee 100644 --- a/src/layouts/default/header/components/notify/NoticeList.vue +++ b/src/layouts/default/header/components/notify/NoticeList.vue @@ -97,7 +97,6 @@ const current = ref(props.currentPage || 1); const getData = computed(() => { const { pageSize, list } = props; - console.log('refreshData', list); if (pageSize === false) return []; let size = isNumber(pageSize) ? pageSize : 5; return list.slice(size * (unref(current) - 1), size * unref(current));