guoshilong
2023-10-18 53bcb7e5dffa071d2c6593f5db7f0b6e4e2f8dfe
src/utils/time.ts
@@ -45,6 +45,7 @@
export function convertTimestampToDate (timestamp:any, format:string) {
  if (timestamp && (typeof timestamp === 'string') && timestamp.indexOf('-') > -1) {
    // eslint-disable-next-line no-useless-escape
    timestamp = timestamp.replace(/\-/g, '/')
  }
  const time = new Date(timestamp)