Error of passing parameters in vue-router

this.active is a variable in data, but if you write it here, you will get an error active is not defind?
I would like to know what the reason is

.
Mar.04,2021

just get rid of this. You don't need to add this to reference variables in vm in template.


remove the this


without this. directly take active

Menu