Skip to content

Commit

Permalink
fix: fix build handler & misc (#1060)
Browse files Browse the repository at this point in the history
* fix(type): fix ant-design-vue  ->

* fix: fix build handler & misc
  • Loading branch information
littlecxm committed Aug 12, 2021
1 parent 948219c commit 66feb77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/script/postBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down
4 changes: 3 additions & 1 deletion build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 66feb77

Please sign in to comment.