//输入框为空时禁止跳转
methods: {
goic() {
const path = "/ic/" + this.gname;
if (this.$route.path == path || this.gname == "") {
return;
}
this.$router.push(path);
},
},
vue路由重复跳转
于 2022-03-02 09:19:45 首次发布