From 66feb779a8645a93760c784c510512118c4c6efa Mon Sep 17 00:00:00 2001 From: CXM <16154023+littlecxm@users.noreply.github.com> Date: Thu, 12 Aug 2021 23:23:44 +0800 Subject: [PATCH] fix: fix build handler & misc (#1060) * fix(type): fix ant-design-vue -> * fix: fix build handler & misc --- build/script/postBuild.ts | 2 +- build/utils.ts | 4 +++- src/layouts/default/header/components/notify/NoticeList.vue | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/script/postBuild.ts b/build/script/postBuild.ts index 79c5e8fbf..e1554bff7 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 7f61a09a7..2eb986ac2 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 1a7c87b26..441010eea 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));