Ver código fonte

修复历史记录修改时间可能不显示的问题

mxd 3 anos atrás
pai
commit
bf353e5019

+ 1 - 1
magic-editor/src/console/src/components/editor/magic-history.vue

@@ -74,7 +74,7 @@ export default {
       this.scriptModel = monaco.editor.createModel(this.scriptEditor.getValue(), 'magicscript')
       this.originalModel = this.scriptModel;
       this.timestampes = timestampes.map((t) => {
-        return {id: item.id, timestamp: t.createDate, dateTime: formatDate(t.createDate), createBy: t.createBy}
+        return {id: item.id, timestamp: t.createDate, dateTime: formatDate(t.createDate * 1), createBy: t.createBy}
       })
       if (this.timestampes.length > 0) {
         this.open(this.timestampes[0])