perf: refs #8604 changed lines and deleted useless code
This commit is contained in:
parent
eb9512fafb
commit
04ef8e1886
|
@ -188,12 +188,8 @@ watch(
|
|||
destinationElRef.value.setAttribute('colspan', '7');
|
||||
originElRef.value.setAttribute('colspan', '9');
|
||||
|
||||
destinationElRef.value.textContent = `${t(
|
||||
'advanceTickets.origin',
|
||||
)} ${toDateTimeFormat(vnTableRef.value.params.dateToAdvance)}`;
|
||||
originElRef.value.textContent = `${t('advanceTickets.destination')} ${toDateTimeFormat(
|
||||
vnTableRef.value.params.dateFuture,
|
||||
)}`;
|
||||
originElRef.value.textContent = `${t('advanceTickets.origin')}`;
|
||||
destinationElRef.value.textContent = `${t('advanceTickets.destination')}`;
|
||||
|
||||
newRow.append(destinationElRef.value, originElRef.value);
|
||||
head.insertBefore(newRow, firstRow);
|
||||
|
@ -205,12 +201,8 @@ watch(
|
|||
() => vnTableRef.value.params,
|
||||
() => {
|
||||
if (originElRef.value && destinationElRef.value) {
|
||||
destinationElRef.value.textContent = `${t(
|
||||
'advanceTickets.origin',
|
||||
)} ${toDateTimeFormat(vnTableRef.value.params.dateToAdvance)}`;
|
||||
originElRef.value.textContent = `${t('advanceTickets.origin')} ${toDateTimeFormat(
|
||||
vnTableRef.value.params.dateFuture,
|
||||
)}`;
|
||||
destinationElRef.value.textContent = `${t('advanceTickets.origin')}`;
|
||||
originElRef.value.textContent = `${t('advanceTickets.destination')}`;
|
||||
}
|
||||
},
|
||||
{ deep: true },
|
||||
|
|
Loading…
Reference in New Issue