I have 2 questions. 1. How can I catch undefined routes and redirect to 404 page? 2. How I can use Vuex actions to get data from api? I know that vuex mutations must be sync and actions async. But I can get data with mutations and can use then promise. but can't in actions or I do anything mistake. Please give me beautiful example for that(component type). I use vuex in laravel mix in Laravel project. Thanks...
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nJfR9T
via IFTTT
Aucun commentaire:
Enregistrer un commentaire