Chatwoot/app/javascript/widget/mixins/routerMixin.js

11 lines
215 B
JavaScript
Raw Permalink Normal View History

export default {
methods: {
async replaceRoute(name, params = {}) {
if (this.$route.name !== name) {
return this.$router.replace({ name, params });
}
return undefined;
},
},
};