提交 88d12033 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 90a3b277
......@@ -17,7 +17,7 @@ export default {
methods: {
formatDate(value) {
const date = new Date(value.replace(/\-/g, '/'))
return date.getFullYear() + '/' + date.getMonth() + 1 + '/' + date.getDate()
return date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate()
}
}
}
......
......@@ -17,7 +17,7 @@ export default {
methods: {
formatDate(value) {
const date = new Date(value.replace(/\-/g, '/'))
return date.getFullYear() + '/' + date.getMonth() + 1 + '/' + date.getDate()
return date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate()
}
}
}
......
......@@ -39,7 +39,7 @@ export default {
// 2020-01-22
formatDate(value) {
const date = new Date(value.replace(/\-/g, '/'))
return date.getFullYear() + '-' + date.getMonth() + 1 + '-' + date.getDate()
return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
}
}
}
......
......@@ -43,7 +43,7 @@ export default {
methods: {
formatDate(value) {
const date = new Date(value.replace(/\-/g, '/'))
return date.getFullYear() + '/' + date.getMonth() + 1 + '/' + date.getDate()
return date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate()
},
back() {
this.$router.back()
......
......@@ -43,7 +43,7 @@ export default {
methods: {
formatDate(value) {
const date = new Date(value.replace(/\-/g, '/'))
return date.getFullYear() + '/' + date.getMonth() + 1 + '/' + date.getDate()
return date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate()
},
back() {
this.$router.back()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论