Skip to content

Commit

Permalink
🐛 fix some admin error
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Jan 21, 2024
1 parent 2a2f0c8 commit 9d2122a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/admin/src/components/custom/count-to.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function formatNumber(num: number | string) {
let number = Number(num).toFixed(decimals);
number = String(number);
const x = number.split('.');
const x = number?.split('.');
let x1 = x[0];
const x2 = x.length > 1 ? decimal + x[1] : '';
const rgx = /(\d+)(\d{3})/;
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/utils/router/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function transformRoutePathToRouteName<K extends AuthRoute.RoutePath>(pat
const pathSplitMark = '/';
const routeSplitMark = '_';

const name = path.split(pathSplitMark).slice(1).join(routeSplitMark) as AuthRoute.AllRouteKey;
const name = path?.split(pathSplitMark).slice(1).join(routeSplitMark) as AuthRoute.AllRouteKey;

return name;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ export default defineConfig({
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose m-auto text-left'.split(' '),
safelist: 'prose m-auto text-left'?.split(' '),
})

0 comments on commit 9d2122a

Please sign in to comment.