vuex-flash icon indicating copy to clipboard operation
vuex-flash copied to clipboard

Danger alert does not appear unless I refresh the page

Open maddog666 opened this issue 7 years ago • 1 comments

The plugin works when I do router push to another location, however, it does not work if I want alert to show right away. For example, I am using danger alert to warn users when there is an error during logins, such as incorrect password, or incorrect user. In these situations, the route does not change (no this.$router.push). How do I flash an alert right away when the route does not change?

maddog666 avatar Oct 18 '17 11:10 maddog666

Is there an appropriate way to handle this? I'm guessing it has to do with how Vuex updates state?

gmox avatar Dec 19 '17 20:12 gmox