fix: TicketLog res.data
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f9ecc687dd
commit
f82b105430
|
@ -47,9 +47,9 @@ class Controller extends Section {
|
||||||
};
|
};
|
||||||
this.$http.get(`TicketLogs`, {filter})
|
this.$http.get(`TicketLogs`, {filter})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res && res.data) {
|
if (res && res.data && res.data.length) {
|
||||||
const now = Date.vnNew();
|
const now = Date.vnNew();
|
||||||
const maxDate = new Date(res.data.creationDate);
|
const maxDate = new Date(res.data[0].creationDate);
|
||||||
maxDate.setHours(maxDate.getHours() + 1);
|
maxDate.setHours(maxDate.getHours() + 1);
|
||||||
if (now <= maxDate)
|
if (now <= maxDate)
|
||||||
return this.canRestoreTicket = true;
|
return this.canRestoreTicket = true;
|
||||||
|
|
Loading…
Reference in New Issue