yu 4 年之前
父節點
當前提交
b18905b3d4
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1 1
      components/home/simulationCore.vue
  2. 4 1
      pages/home.vue

+ 1 - 1
components/home/simulationCore.vue

@@ -84,7 +84,7 @@
 				// this.getProjectsID();
 			},
 			goToProjectMange(){
-				
+				this.$emit('goToTeachCreation');
 			},
 			getProjectsID() {
 				// console.log('userID=',this.$UserId)

+ 4 - 1
pages/home.vue

@@ -17,7 +17,7 @@
 			<SYJJ2 ref="SYJJ2" v-show="bShow[8]"></SYJJ2>
 			<simulation ref="simulation" v-show="bShow[9]"></simulation>
 			<simulationLibrary ref="simulationLibrary" v-show="bShow[10]"></simulationLibrary>
-			<simulationcore ref="simulationcore" v-show="bShow[11]"></simulationcore>
+			<simulationcore ref="simulationcore" v-show="bShow[11]" v-on:goToTeachCreation="goToTeachCreation"></simulationcore>
 			<simulationBase ref="simulationBase" v-show="bShow[12]"></simulationBase>
 			<teacherCreation ref="teacherCreation" v-show="bShow[13]"></teacherCreation>
 			<User ref="User" v-show="bShow[14]" v-on:onClick_proManage="onClick_proManage"></User>
@@ -294,6 +294,9 @@
 				// console.log("左侧导航点击home", indexArr);
 				this.$forceUpdate();
 			},
+			goToTeachCreation(){
+				this.showPage(13);
+			},
 			//顶部导航左上角icon点击事件
 			onTopMenuIconClick() {
 				if(!getApp().globalData.bLogin) {