zjs_project 1 рік тому
батько
коміт
dfc2d58690
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      src/pages/webgl_rxdz_roam/webgl_rxdz_roam.vue

+ 3 - 2
src/pages/webgl_rxdz_roam/webgl_rxdz_roam.vue

@@ -372,6 +372,7 @@
 					let nextIndex = (index + 1) % that.actors.length;
 					//移动到对应的视角去
 					moveActor(that.actors[nextIndex]);
+					that.defaulIndex = nextIndex;//更新下默认视角
 				}
 			}
 			//移动到选中的位置-地板
@@ -775,9 +776,9 @@
 				}
 				if (this.$refs.viewMask.showAIImage) {
 					this.$refs.viewMask.showOrHideWebGl();//隐藏显示的AI生图
-					if(this.currentActor.userIndex!=this.defaulIndex){//当前不是默认视角了
+					// if(this.currentActor.userIndex!=this.defaulIndex){//当前不是默认视角了
 						this.switchActor(this.defaulIndex);//切换到默认视角
-					}
+					// }
 				} else {
 					this.$router.go(-1);
 				}