0👍
In the if
condition you should use double &
to compare the values :
if (to.name === "onboarding/3" && noCC) {
next({ path: "/dashboard" });
}
- [Vuejs]-Getting an error TypeError: Cannot read properties of undefined (reading 'state') in vuejs while using Vuex
- [Vuejs]-Cant install element ui on vue project
Source:stackexchange.com