Commit 2148eb1f authored by linxin's avatar linxin

fix:优化进件

parent 2bb61c6e
...@@ -52,6 +52,12 @@ export default { ...@@ -52,6 +52,12 @@ export default {
var y = date.getFullYear() var y = date.getFullYear()
var m = date.getMonth() + 1 var m = date.getMonth() + 1
var d = date.getDate() var d = date.getDate()
if (m < 10) {
m = `0${m}`
}
if (d < 10) {
d = `0${d}`
}
return `${y}-${m}-${d}` return `${y}-${m}-${d}`
}, },
'NumFormat': function (value) { 'NumFormat': function (value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment