VUEX assignment error report, but does not affect the use?

clipboard.png

clipboard.png

clipboard.png

Mar.01,2021
The convention of

vuex cannot change the value of state outside of mutation. Otherwise, there will be a warning in development mode, but it will not affect the use.
it is recommended to follow the convention to facilitate data management.
if you don't want to be constrained by this, you can define variables within the component instead of within the state.

Menu