|
@@ -126,7 +126,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
formatDate(value) {
|
|
|
- let temp = new Date(value)
|
|
|
+ let temp = new Date(value.replace(/-/ig, '/'))
|
|
|
let month = (temp.getMonth() + 1) >= 10 ? temp.getMonth() + 1 : '0' + (temp.getMonth() + 1)
|
|
|
let day = (temp.getDate() + 1) >= 10 ? temp.getDate() + 1 : '0' + (temp.getDate() + 1)
|
|
|
return month + '-' + day
|