How can I link the Button to another page using VUE.JS

  javascript, vue.js

I have a button and it needs to be linked to another page. This is my current code.
How can we write this login in vuejs? It should go to page "/shop/customer/login"

 <div class="space-x-6">
  <button>Login</button>
   <button @click="$store.commit('openPaintCalculator')">
     Calculator
   </button>
</div>

I am early stage of learning vue.js

Source: Ask Javascript Questions

LEAVE A COMMENT