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