瀏覽代碼

修改传参

lex 2 年之前
父節點
當前提交
235d30e965
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/school/ranking-list/index.tsx
  2. 2 2
      src/student/ranking-list/index.tsx

+ 2 - 2
src/school/ranking-list/index.tsx

@@ -63,13 +63,13 @@ export default defineComponent({
         </OSticky>
         {activeName.value == 'timer' ? (
           <TimerBang
-            startTime={state.startTime}
+            startTime={dayjs(state.startTime).format('YYYYMMDD')}
             endTime={state.endTime}
             toHeight={state.heightV}
           ></TimerBang>
         ) : (
           <DayBang
-            startTime={state.startTime}
+            startTime={dayjs(state.startTime).format('YYYYMMDD')}
             endTime={state.endTime}
             toHeight={state.heightV}
           ></DayBang>

+ 2 - 2
src/student/ranking-list/index.tsx

@@ -21,7 +21,7 @@ export default defineComponent({
     })
 
     const forms = reactive({
-      practiceMonth: dayjs().day(1).format('YYYY-MM-DD'),
+      practiceMonth: dayjs().day(1).format('YYYYMMDD'),
       endTime: dayjs().day(7).format('YYYY-MM-DD')
     })
     provide('parentData', forms)
@@ -41,7 +41,7 @@ export default defineComponent({
               border={false}
             ></OHeader>
             <span class={styles.topTime} onClick={() => (state.showPopoverTime = true)}>
-              {forms.practiceMonth}~{forms.endTime}{' '}
+              {dayjs(forms.practiceMonth).format('YYYY-MM-DD')}~{forms.endTime}{' '}
               <Icon name={state.showPopoverTime ? 'arrow-up' : 'arrow-down'} />
             </span>
           </div>