소스 검색

🎨 fix(helper/config/range): 逻辑调整,去除文本转换

晓晓晓晓丶vv 4 년 전
부모
커밋
fec33fa918
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/helper/config/range.ts

+ 2 - 2
src/helper/config/range.ts

@@ -39,8 +39,8 @@ class RangePicker implements RangePickerClass {
 
   pick(range: string[]) {
     range.forEach((r: string) => {
-      const text = (<Record<string, string>>pickerText)[r];
-      this.config[text] = (picker as Record<string, moment.Moment[]>)[r];
+      // const text = (<Record<string, string>>pickerText)[r];
+      this.config[r] = (picker as Record<string, moment.Moment[]>)[r];
     });
 
     return this;