diff --git a/src/pages/clock/index.vue b/src/pages/clock/index.vue index 18d08c7..37b79ed 100644 --- a/src/pages/clock/index.vue +++ b/src/pages/clock/index.vue @@ -1,8 +1,15 @@ @@ -146,7 +153,7 @@ this.optionsData = res.obj.wechatClocklist if (this.optionsData.length > 0) { this.optionsData[0].attTypeTxt = '上班' - + if (this.optionsData.length >= 2) { this.optionsData[this.optionsData.length - 1].attTypeTxt = '下班' } @@ -320,4 +327,4 @@ margin-bottom: 16rpx; } } - \ No newline at end of file +