mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
11 lines
215 B
JavaScript
11 lines
215 B
JavaScript
export default {
|
|
methods: {
|
|
async replaceRoute(name, params = {}) {
|
|
if (this.$route.name !== name) {
|
|
return this.$router.replace({ name, params });
|
|
}
|
|
return undefined;
|
|
},
|
|
},
|
|
};
|