In vue, how to take the state of vuex and calculate it in created

clipboard.png
report navIdx is not defined"s error in this way

Dec.17,2021

this.navIdx


use this.navIdx , this value is


navIdx is used as a variable when it is directly used on the current Vue instance, but yours is an attribute set by new Vue, so it will cause an error and change it to this.navIdx

.
Menu