Skip to content

Commit 304afa2

Browse files
fix(tool): left time condition (#109)
1 parent c37d42f commit 304afa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tool/off-time/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ const cal = () => {
4848
<pre v-if="start_time">上班时间:{{ start_time }}</pre>
4949
<pre v-if="end_time">下班时间:{{ end_time }}</pre>
5050
<pre
51-
v-if="leftTime.hour || leftTime.min || leftTime.sec"
51+
v-if="leftTime.hour > 0 || leftTime.min > 0 || leftTime.sec > 0"
5252
>距离下班还有 {{ leftTime.hour }} 时 {{ leftTime.min }} 分 {{ leftTime.sec }} 秒</pre>
5353
</template>

0 commit comments

Comments
 (0)