This commit is contained in:
zk
2023-12-14 09:23:58 +08:00
parent 825d10fc35
commit d614f10bb5
25 changed files with 826 additions and 558 deletions
+2
View File
@@ -0,0 +1,2 @@
//副屏-预警
export const earlyWarning = 'early-warning';
+12
View File
@@ -26,4 +26,16 @@ export function useTopTime() {
export function getToday() {
return dayjs().format('YYYY-MM-DD');
}
//分钟转小时
export function minuteToStr(minutes) {
// debugger;
if (!minutes) return '0分';
let h = Math.floor(minutes / 60);
let m = Math.floor(minutes % 60);
if (h) {
return `${h}小时${m > 0 ? `${m}分钟` : ''}`;
}
return `${m}分钟`;
}