File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ export let InfoCrudMixin = {
15
15
paranoid : true ,
16
16
getterMethods : {
17
17
createTime ( ) {
18
- return new Date ( ) . getTime ( ) ;
18
+ // @ts -ignore
19
+ return new Date ( this . getDataValue ( 'create_time' ) ) . getTime ( ) ;
19
20
} ,
20
21
updateTime ( ) {
21
- return new Date ( ) . getTime ( ) ;
22
+ // @ts -ignore
23
+ return new Date ( this . getDataValue ( 'update_time' ) ) . getTime ( ) ;
22
24
}
23
25
}
24
26
}
@@ -101,10 +103,12 @@ export let UserInterface = {
101
103
return this . getDataValue ( 'active' ) === UserActive . ACTIVE ;
102
104
} ,
103
105
createTime ( ) {
104
- return new Date ( ) . getTime ( ) ;
106
+ // @ts -ignore
107
+ return new Date ( this . getDataValue ( 'create_time' ) ) . getTime ( ) ;
105
108
} ,
106
109
updateTime ( ) {
107
- return new Date ( ) . getTime ( ) ;
110
+ // @ts -ignore
111
+ return new Date ( this . getDataValue ( 'update_time' ) ) . getTime ( ) ;
108
112
}
109
113
}
110
114
}
@@ -202,7 +206,8 @@ export let LogInterface = {
202
206
updatedAt : false ,
203
207
getterMethods : {
204
208
time ( ) {
205
- return new Date ( ) . getTime ( ) ;
209
+ // @ts -ignore
210
+ return new Date ( this . getDataValue ( 'time' ) ) . getTime ( ) ;
206
211
}
207
212
}
208
213
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lin-mizar" ,
3
- "version" : " 0.2.1 " ,
3
+ "version" : " 0.2.2 " ,
4
4
"description" : " The core library of Lin CMS" ,
5
5
"main" : " lin/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments