Reputation: 43
I have a problem, in my application after submitting a form it will ask for do you want to add one more item? and have 2 options "yes" or "no".If the user selecting no he will route to dash board and Yes he should stay there in the same page.I have tried it
``
<input type="button" value="Yes" class="button small" @click="$router.go()" /> ``
its working fine normal but on deployment showing 404-not available.
In such situation to route in same page what we have to do?
It will be very helpful why its happening and what will be the solution for that. Thanks in advance
Upvotes: 0
Views: 147
Reputation: 82
I think its better to render your form based on a value and when the user clicks on 'yes' button, you add to the value and actually another form renders, there is no need to call a router.go method.
Upvotes: 1