|
@@ -62,6 +62,15 @@ export default {
|
|
|
if (strDate >= 0 && strDate <= 9) {
|
|
|
strDate = "0" + strDate;
|
|
|
}
|
|
|
+ if(hour >=1&& hour <= 9) {
|
|
|
+ hour = "0" + hour;
|
|
|
+ }
|
|
|
+ if(minutes >=1&& minutes <= 9) {
|
|
|
+ minutes = "0" + minutes;
|
|
|
+ }
|
|
|
+ if(seconds >=1&& seconds <= 9) {
|
|
|
+ seconds = "0" + seconds;
|
|
|
+ }
|
|
|
_this.currentTime = year + '-' + month + '-' + strDate+" "+hour+":" +minutes+":" +seconds;
|
|
|
}, 1000)
|
|
|
},
|