17 lines
372 B
JavaScript
17 lines
372 B
JavaScript
![]() |
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|