Commit 66feb779a8645a93760c784c510512118c4c6efa

Authored by CXM
Committed by GitHub
1 parent 948219c5

fix: fix build handler & misc (#1060)

* fix(type): fix ant-design-vue  ->

* fix: fix build handler & misc
build/script/postBuild.ts
... ... @@ -11,7 +11,7 @@ export const runBuild = async () => {
11 11  
12 12 // Generate configuration file
13 13 if (!argvList.includes('disabled-config')) {
14   - await runBuildConfig();
  14 + runBuildConfig();
15 15 }
16 16  
17 17 console.log(`✨ ${chalk.cyan(`[${pkg.name}]`)}` + ' - build successfully!');
... ...
build/utils.ts
... ... @@ -31,7 +31,9 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
31 31 if (envName === 'VITE_PROXY') {
32 32 try {
33 33 realName = JSON.parse(realName);
34   - } catch (error) {}
  34 + } catch (error) {
  35 + realName = '';
  36 + }
35 37 }
36 38 ret[envName] = realName;
37 39 if (typeof realName === 'string') {
... ...
src/layouts/default/header/components/notify/NoticeList.vue
... ... @@ -97,7 +97,6 @@
97 97 const current = ref(props.currentPage || 1);
98 98 const getData = computed(() => {
99 99 const { pageSize, list } = props;
100   - console.log('refreshData', list);
101 100 if (pageSize === false) return [];
102 101 let size = isNumber(pageSize) ? pageSize : 5;
103 102 return list.slice(size * (unref(current) - 1), size * unref(current));
... ...