时钟显示AM,PM12点BUG
This commit is contained in:
parent
70af089942
commit
4724df0238
@ -24,7 +24,7 @@ onBeforeUnmount(()=>{
|
|||||||
<div>
|
<div>
|
||||||
<!-- <el-text>{{(showTime.getHours()%12)/10<1?`0${showTime.getHours()%12}`:showTime.getHours()%12}}</el-text>-->
|
<!-- <el-text>{{(showTime.getHours()%12)/10<1?`0${showTime.getHours()%12}`:showTime.getHours()%12}}</el-text>-->
|
||||||
<el-text>{{showTime.getHours()>12?(showTime.getHours()%12)/10<1?`0${showTime.getHours()%12}`:showTime.getHours()%12:(showTime.getHours())/10<1?`0${showTime.getHours()}`:showTime.getHours()}}</el-text>
|
<el-text>{{showTime.getHours()>12?(showTime.getHours()%12)/10<1?`0${showTime.getHours()%12}`:showTime.getHours()%12:(showTime.getHours())/10<1?`0${showTime.getHours()}`:showTime.getHours()}}</el-text>
|
||||||
<el-text style="font-size: 5vw" type="primary">{{(showTime.getHours()/12>1?"PM":"AM")}}</el-text>
|
<el-text style="font-size: 5vw" type="primary">{{(showTime.getHours()>=12?"PM":"AM")}}</el-text>
|
||||||
<el-text>:</el-text>
|
<el-text>:</el-text>
|
||||||
<el-text>{{(showTime.getMinutes())/10<1?`0${showTime.getMinutes()}`:showTime.getMinutes()}}</el-text>
|
<el-text>{{(showTime.getMinutes())/10<1?`0${showTime.getMinutes()}`:showTime.getMinutes()}}</el-text>
|
||||||
<el-text style="font-size: 5vw">:</el-text>
|
<el-text style="font-size: 5vw">:</el-text>
|
||||||
|
Loading…
Reference in New Issue
Block a user