Showing
1 changed file
with
4 additions
and
0 deletions
@@ -65,6 +65,9 @@ import dateMonths from "./dateMonths.vue" | @@ -65,6 +65,9 @@ import dateMonths from "./dateMonths.vue" | ||
65 | }, | 65 | }, |
66 | computed:{ | 66 | computed:{ |
67 | date(){ | 67 | date(){ |
68 | + if(this.dateTime.year){ | ||
69 | + this.value=this.showDate(this.dateTime,this.format); | ||
70 | + } | ||
68 | return this.showDate(this.dateTime,this.format); | 71 | return this.showDate(this.dateTime,this.format); |
69 | }, | 72 | }, |
70 | isshow(){ | 73 | isshow(){ |
@@ -111,6 +114,7 @@ import dateMonths from "./dateMonths.vue" | @@ -111,6 +114,7 @@ import dateMonths from "./dateMonths.vue" | ||
111 | minute:dateTime.getMinutes(), | 114 | minute:dateTime.getMinutes(), |
112 | second:dateTime.getSeconds() | 115 | second:dateTime.getSeconds() |
113 | } | 116 | } |
117 | + this.value=this.showDate(this.dateTime,this.format); | ||
114 | } | 118 | } |
115 | } | 119 | } |
116 | </script> | 120 | </script> |
-
Please register or login to post a comment