重新修改跳转的问题

This commit is contained in:
daihh
2022-10-27 18:31:46 +08:00
parent bc34262086
commit 831bfec794

View File

@@ -87,7 +87,7 @@
}, },
mounted() { mounted() {
console.log('自己='+this.userInfo.showHome); //console.log('自己='+this.userInfo.showHome);
if(this.pageId == this.userInfo.aid) { if(this.pageId == this.userInfo.aid) {
this.self = true; this.self = true;
} }
@@ -107,7 +107,7 @@
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=path.substring(0,idx-1)+'?gz=7'+num; location.href=process.env.VUE_APP_PUBLIC_PATH+path.substring(0,idx-1)+'?gz=7'+num;
}else{ }else{
this.$bus.$emit('followIndex',num) this.$bus.$emit('followIndex',num)
} }