Преглед изворни кода

fix(report): 修改日期工具类

lishihao пре 4 година
родитељ
комит
e901dd4564
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      report/src/public/ReportDate.ts

+ 6 - 6
report/src/public/ReportDate.ts

@@ -2,14 +2,14 @@ import { set } from 'lodash';
 
 export default class ReportDate extends Date {
  
-  prototype: any;
+  // prototype: any;
 
-  constructor() {
-    super();
+  // constructor() {
+  //   super();
    
-    set(this.prototype, 'Format', this.Format);
-    Object.assign(Date, this);
-  }
+  //   set(this.prototype, 'Format', this.Format);
+  //   Object.assign(Date, this);
+  // }
 
   Format = (fmt: string) => {
     const o: Record<string, any> = {