Pārlūkot izejas kodu

修改coconote跳转

11wqe1 1 nedēļu atpakaļ
vecāks
revīzija
6333b855a0
1 mainītis faili ar 19 papildinājumiem un 5 dzēšanām
  1. 19 5
      src/views/HomeView.vue

+ 19 - 5
src/views/HomeView.vue

@@ -347,7 +347,26 @@ export default {
 			}
 		},
 		async cocoNoteif(){
+			this.openApp3({
+				stateL: true,
+				toolId: "synergyCourse",
+				clearL: true,
+			});
+
 			if (this.cocoNoteType && this.courseId) {
+				if (window.topU.US.userInfo.role==1) {
+					window.topU.postMessage(
+						{
+							tools: "opencCscl",
+							cid: this.courseId,
+							gid: '',
+						},
+						"*"
+					);
+					this.addOp3('1', "", { courseid: this.courseId , type: "CocoNote_open" }, "success")
+					return;
+				}
+
 				let params = {
 					cid: this.courseId,
 					classid: '1',
@@ -365,11 +384,6 @@ export default {
 							}
 						}
 						if (groupCid) {
-							this.openApp3({
-								stateL: true,
-								toolId: "synergyCourse",
-								clearL: true,
-							});
 							window.topU.postMessage(
 								{
 									tools: "opencCscl",