review:antd 工具类相关

This commit is contained in:
YunaiV
2025-05-12 09:54:35 +08:00
parent 5c52d3f815
commit 43f01eeb4d
2 changed files with 2 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
* @param ms 毫秒
* @returns {string} 字符串
*/
// TODO @xingyu这个要融合到哪里去 date 么?
export function formatPast2(ms: number): string {
// 定义时间单位常量,便于维护
const SECOND = 1000;

View File

@@ -1,6 +1,7 @@
import { defineAsyncComponent } from 'vue';
const modules = import.meta.glob('../views/**/*.{vue,tsx}');
// TODO @xingyu这个要不要融合到哪个 router util 里?
/**
* 注册一个异步组件
* @param componentPath 例:/bpm/oa/leave/detail