[Vuejs]-How to remove query string in url with vue spa application?

0👍

Inside the dashboard component use router.push to remove the query string.

<script>
export default {
  data() {
    return {

    };
  },
  created: function () {
    let self = this;
    self.$router.push('/dashboard');
  },
};
</script>

Leave a comment