forked from verdnatura/salix-front
refactor: refs #6739 changed router.push
This commit is contained in:
parent
9eac6b775a
commit
d73b5b6f4c
|
@ -81,8 +81,7 @@ const transferInvoice = async () => {
|
||||||
|
|
||||||
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
|
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
|
||||||
notify(t('Transferred invoice'), 'positive');
|
notify(t('Transferred invoice'), 'positive');
|
||||||
closeForm();
|
if (data.id) router.push({ name: 'InvoiceOutSummary', params: { id: data.id } });
|
||||||
router.push('InvoiceOutSummary', { id: data.id });
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error transfering invoice', err);
|
console.error('Error transfering invoice', err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue