a
This commit is contained in:
@@ -14,7 +14,7 @@ export default defineComponent({
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
setup(props) {
|
||||
const transactionService = inject('transactionService', () => new TransactionService());
|
||||
const alertService = inject('alertService', () => useAlertService(), true);
|
||||
|
||||
@@ -23,11 +23,13 @@ export default defineComponent({
|
||||
const isFetching = ref(false);
|
||||
|
||||
const clear = () => {};
|
||||
|
||||
// console.log(props.userAccountId);
|
||||
const retrieveTransactions = async () => {
|
||||
isFetching.value = true;
|
||||
try {
|
||||
// console.log(props);
|
||||
const res = await transactionService().retrieve();
|
||||
// const res = await transactionService().retrieveForAccount(props.userAccountId);
|
||||
transactions.value = res.data;
|
||||
} catch (err) {
|
||||
alertService.showHttpError(err.response);
|
||||
|
||||
Reference in New Issue
Block a user