0👍
Please check this code. you can use that:
[types.order.mutations.UPDATE_ORDERS_LIST]: (state, payload) => {
state.ordersList.find(el => {
if (el.reference_number === payload.reference_number) {
el.status = payload.status;
el.status_locale = payload.status_locale;
el.is_cancelable = payload.is_cancelable;
}
});
}
[types.operations.mutations.MUTATE_EXCHANGE_CURRENCIES]: (state, payload) => {
let data = [];
payload.wallets.forEach(elem => {
if (elem.is_change_active && elem.currency.iso !== "IRR") {
data.push(elem);
}
});
state.exchangeCurrencies = data;
}`enter code here`
- [Vuejs]-My SPA is not working on Laravel 8 and Vue 3
- [Vuejs]-How to move an axios call into its own method using vuex and typescript
Source:stackexchange.com