diff --git a/resources/js/Default/store/store/getters.text b/resources/js/Default/store/store/getters.text index 59eafa6..3c1f432 100644 --- a/resources/js/Default/store/store/getters.text +++ b/resources/js/Default/store/store/getters.text @@ -1,5 +1,5 @@ export default { - get|-Module-|s: state => state.|-module-|, + get|-Module-|s: state => state.|-module-|_list, get|-Module-|: state => product => state.product_list.find(item => item.id == |-module-|), get|-Module-|Loading: state => state.loading, get|-Module-|Pagination: state => state.pagination, diff --git a/resources/js/Default/store/store/mutations.text b/resources/js/Default/store/store/mutations.text index 9bdb8c0..5f286c6 100644 --- a/resources/js/Default/store/store/mutations.text +++ b/resources/js/Default/store/store/mutations.text @@ -43,6 +43,6 @@ export default { }, SET_LOADING(state, value) { - state.loading = value; + Vue.set(state, 'loading', value); } };