fixed bug of the components with link in vue-router 3.1+
This commit is contained in:
parent
0e6d05c3c5
commit
9c75e0223b
4 changed files with 7 additions and 3 deletions
|
@ -55,7 +55,7 @@ export default {
|
|||
window.open(to);
|
||||
} else {
|
||||
if (router) {
|
||||
this.replace ? this.$router.replace(this.to) : this.$router.push(this.to);
|
||||
this.replace ? this.$router.replace(this.to, () => {}) : this.$router.push(this.to, () => {});
|
||||
} else {
|
||||
window.location.href = this.to;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue