|
@@ -2078,6 +2078,9 @@ var vm = new Vue({
|
|
|
|
|
|
function formatTimeText (type) {
|
|
function formatTimeText (type) {
|
|
var result = ''
|
|
var result = ''
|
|
|
|
+ if (typeof type === "string") {
|
|
|
|
+ type = type.replace(/-/g, '/')
|
|
|
|
+ }
|
|
var tempDate = new Date(type)
|
|
var tempDate = new Date(type)
|
|
if (typeof tempDate.getTime() === 'number') {
|
|
if (typeof tempDate.getTime() === 'number') {
|
|
result = tempDate.pattern('yyyy/MM/dd')
|
|
result = tempDate.pattern('yyyy/MM/dd')
|