Answer the question
In order to leave comments, you need to log in
How to insert an element in the center of a Vuex array?
Hello.
I have a vue table using vuex.
It is necessary to add a column to the table (in the middle, for example), but so that the table would completely re-render the indexes, because I use indexes.
in mutation I call
state.cols.splice(toIndex,0,payload.newColumnContent)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question