Browse Source

fix: fix build handler & misc (#1060)

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

* fix: fix build handler & misc
pull/1073/head
CXM 5 years ago
committed by GitHub
parent
commit
66feb779a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      build/script/postBuild.ts
  2. 4
      build/utils.ts
  3. 1
      src/layouts/default/header/components/notify/NoticeList.vue

2
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!');

4
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') {

1
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));

Loading…
Cancel
Save