11 lines
194 B
JavaScript
11 lines
194 B
JavaScript
|
export default {
|
||
|
methods: {
|
||
|
async replaceRoute(name) {
|
||
|
if (this.$route.name !== name) {
|
||
|
return this.$router.replace({ name });
|
||
|
}
|
||
|
return undefined;
|
||
|
},
|
||
|
},
|
||
|
};
|