修复on-select事件不触发
This commit is contained in:
zhigang.li 2018-06-29 18:25:41 +08:00
parent 9d553a2b81
commit 7ff2f71a2f
2 changed files with 11 additions and 9 deletions

View file

@ -26,15 +26,14 @@ export default {
methods: {
handleClick () {
const isRoute = this.$router;
const href = this.to || this.href;
if (isRoute) {
this.replace ? this.$router.replace(href) : this.$router.push(href);
this.replace ? this.$router.replace(this.to) : this.$router.push(this.to);
} else {
window.location.href = href;
window.location.href = this.to;
}
},
handleCheckClick (event) {
if (this.to || this.href) {
if (this.to) {
if (this.target === '_blank') {
return false;
} else {