update
This commit is contained in:
parent
5fe393db5c
commit
e77474de9e
2 changed files with 21 additions and 12 deletions
17
src/mixins/link.js
Normal file
17
src/mixins/link.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
export default {
|
||||
computed: {
|
||||
linkUrl () {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClick () {
|
||||
const isRoute = this.$router;
|
||||
if (isRoute) {
|
||||
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