src/utils/index.js
@@ -168,4 +168,9 @@ export const formatWithCommas = (num) => { if (num === null || num === undefined || isNaN(num)) return '--'; return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); } /** 体验矿机 test=Y,普通矿机 cycle 为可解锁分钟数 */ export function isMinerTest(test) { return test === 'Y' || test === true }