添加一个输入打印跳转问题

This commit is contained in:
daihh
2022-10-28 11:15:34 +08:00
parent aef9017991
commit ee09a760cd

View File

@@ -107,7 +107,9 @@
if(idx>0){ if(idx>0){
//console.log(path.substring(0,idx-1),'this.$router.path'); //console.log(path.substring(0,idx-1),'this.$router.path');
//this.$router.push(path.substring(0,idx-1)+'?gz=7'+num) //this.$router.push(path.substring(0,idx-1)+'?gz=7'+num)
location.href=process.env.VUE_APP_PUBLIC_PATH+path.substring(0,idx-1)+'?gz=7'+num; let toUrl=process.env.VUE_APP_PUBLIC_PATH+path.substring(0,idx-1)+'?gz=7'+num;
console.log(toUrl,'toUrl')
location.href=toUrl
}else{ }else{
this.$bus.$emit('followIndex',num) this.$bus.$emit('followIndex',num)
} }