Эх сурвалжийг харах

fix bug 点击项目列表细节后退出回来还在细节页面

yichael 4 жил өмнө
parent
commit
e5d21ba898

+ 2 - 2
components/home/sy.vue

@@ -52,7 +52,7 @@
 			
 			
 			<img src="../../assets/home/homeBG.jpg" />
-<!-- controls="{{false}}" -->
+
 			<video class="myVideo" 
 				:src="src"
 				:controls="controls"
@@ -87,7 +87,7 @@
 		data() {
 			return {
 				showIndex: -1,
-				src:'https://zhongchuan1.oss-cn-beijing.aliyuncs.com/Video/home.MP4?Expires=1623941426&OSSAccessKeyId=TMP.3KfofQDcTSN872xnqTfavvRpfHDZskzYZaTN3RG8rHBboCaYW5Mo28TFeDo1GaJLtVjvEk6wA2zyo2kGiL8BtdKmhJLSb7&Signature=ZtisB%2Fpuzozl6r%2BHlbNXgcYMsqk%3D&versionId=CAEQDxiBgIDmyO_o0BciIGExNjQ1ZmJkNTVkOTRlMWRhNGRkZjAxNTEzZTMxOTll&response-content-type=application%2Foctet-stream',
+				src:'https://zhongchuan1.oss-cn-beijing.aliyuncs.com/Video/home.MP4?versionId=CAEQDxiBgIDmyO_o0BciIGExNjQ1ZmJkNTVkOTRlMWRhNGRkZjAxNTEzZTMxOTll',
 				controls:false,
 				menu: [{
 						"title": '虚拟仿真资产库',

+ 1 - 0
components/student/Index.vue

@@ -97,6 +97,7 @@
 			},
 			updateInfo(){
 				// console.log("onShow_学生项目管理平台");
+				this.index = 1;
 				this.name=mydata_userInfo.Name;
 				this.position=userController.userInfo.Profession;
 			},

+ 4 - 1
pages/home.vue

@@ -23,7 +23,7 @@
 			<simulationcore ref="simulationcore" v-show="bShow[11]" v-on:goToTeachCreation="goToTeachCreation"
 				v-on:goToStudentPlatform="goToStudentPlatform"></simulationcore>
 			<simulationBase ref="simulationBase" v-show="bShow[12]"></simulationBase>
-			<teacherCreation ref="teacherCreation" v-show="bShow[13]"></teacherCreation>
+			<teacherCreation ref="teacherCreation" v-show="bShow[13]" v-on:enter="enter"></teacherCreation>
 			<User ref="User" v-show="bShow[14]" v-on:onClick_proManage="onClick_proManage"></User>
 			<XXGY ref="XXGY" v-show="bShow[15]"></XXGY>
 			<SYBZ ref="SYBZ" v-show="bShow[16]" v-on:onClick_ksxx="onClick_ksxx"></SYBZ>
@@ -402,6 +402,8 @@
 				this.$forceUpdate();
 			},
 			goToTeachCreation() {
+				// console.log('2222222')
+				// this.$refs.teacherCreation.enter();
 				this.showPage(13);
 			},
 			goToStudentPlatform() {
@@ -583,6 +585,7 @@
 				let targetPage = -1;
 				let topMiddleState = '';
 				if (mydata_userInfo.role == '老师') {
+					this.$refs.teacherCreation.enter();
 					targetPage = 13;
 				} else {
 					targetPage = 19;