lsc 11 months ago
parent
commit
4765b74d89

+ 17 - 1
src/common/axios.config.js

@@ -20,8 +20,24 @@ axios.interceptors.request.use((config) => {
     } else if (config.data && config.data[0].post == '1' && config.method === 'post') {
         config.data = 'mode=' + (Object.values(config.data[0]).join(',')) //序列化post 参数
     } else if (config.method === 'post') {
-        config.data = qs.stringify(config.data) //序列化post 参数
+
+        const encoded = {};
+        for (const key in config.data[0]) {
+            if (Object.hasOwnProperty.call(config.data[0], key)) {
+            encoded[key] = encodeURIComponent(config.data[0][key]);
+            }
+        }
+        config.data = qs.stringify([encoded]) //序列化post 参数
+    }else {
+        const encoded = {};
+        for (const key in config.data) {
+            if (Object.hasOwnProperty.call(config.data, key)) {
+            encoded[key] = encodeURIComponent(config.data[key]);
+            }
+        }
+        config.data = encoded
     }
+    
     return config;
 }, (error) => {
     console.log('错误的传参')

+ 1 - 1
src/components/Choice/index.vue

@@ -175,7 +175,7 @@ export default {
             //         stage: this.courseType,
             //         task: this.taskCount,
             //         tool: this.toolindex,
-            //         content: JSON.stringify(askList).replaceAll(/%/g, "%25"),
+            //         content: JSON.stringify(askList),
             //         type: 14,
             //         atool: 62,
             //         vtime: this.videoTime,

+ 6 - 6
src/components/GM/studyStudentGM.vue

@@ -4621,8 +4621,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -4957,7 +4957,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -5184,7 +5184,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -5377,7 +5377,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -5417,7 +5417,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/easy/studyStudent.vue

@@ -3104,7 +3104,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -3133,7 +3133,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -3161,7 +3161,7 @@ export default {
         stage: this.courseType,
         task: this.taskCount,
         tool: this.toolindex,
-        content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+        content: JSON.stringify(this.wordJson),
         type: 13,
         atool: 52,
       }];
@@ -3190,7 +3190,7 @@ export default {
         stage: this.courseType,
         task: this.taskCount,
         tool: this.toolindex,
-        content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+        content: JSON.stringify(this.wordJson),
         type: 13,
         atool: 52,
       }];
@@ -3275,7 +3275,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -3321,7 +3321,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -4979,8 +4979,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -5014,8 +5014,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -5533,7 +5533,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -5826,7 +5826,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -6064,7 +6064,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -6108,7 +6108,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -6152,7 +6152,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -6196,7 +6196,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -7519,7 +7519,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.chapInfoList),
           uid: this.userid,
           unitIndex: this.courseType,
         },

+ 17 - 17
src/components/easy2/studyStudent jiu.vue

@@ -12757,7 +12757,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12786,7 +12786,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12815,7 +12815,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12846,7 +12846,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12932,7 +12932,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12978,7 +12978,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15444,8 +15444,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15479,8 +15479,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16022,7 +16022,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16061,7 +16061,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16411,7 +16411,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16660,7 +16660,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16704,7 +16704,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16748,7 +16748,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -16792,7 +16792,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/easy2/studyStudent.vue

@@ -12882,7 +12882,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12918,7 +12918,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12958,7 +12958,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12988,7 +12988,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -13073,7 +13073,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -13119,7 +13119,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -16080,8 +16080,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16114,8 +16114,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16680,7 +16680,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16719,7 +16719,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -17105,7 +17105,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -17371,7 +17371,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17415,7 +17415,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17459,7 +17459,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17503,7 +17503,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/easy3/studyStudent jiu.vue

@@ -12777,7 +12777,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12806,7 +12806,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12835,7 +12835,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12866,7 +12866,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12952,7 +12952,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12998,7 +12998,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15462,8 +15462,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15497,8 +15497,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15912,7 +15912,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -15951,7 +15951,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16301,7 +16301,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16550,7 +16550,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16594,7 +16594,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16638,7 +16638,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -16682,7 +16682,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/easy3/studyStudent.vue

@@ -12874,7 +12874,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12910,7 +12910,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12950,7 +12950,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12980,7 +12980,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -13065,7 +13065,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -13111,7 +13111,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -16095,8 +16095,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16129,8 +16129,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16698,7 +16698,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16737,7 +16737,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -17123,7 +17123,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -17390,7 +17390,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17434,7 +17434,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17478,7 +17478,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17522,7 +17522,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 1 - 1
src/components/group/group.vue

@@ -605,7 +605,7 @@ export default {
             let params = [
                 {
                     cid: this.cid,
-                    group: JSON.stringify(this.groupJson2).replaceAll(/%/g, "%25"),
+                    group: JSON.stringify(this.groupJson2),
                     classid: this.classid,
                 },
             ];

+ 17 - 17
src/components/noTerminal/studyStudent.vue

@@ -5670,7 +5670,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -5699,7 +5699,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -5727,7 +5727,7 @@ export default {
         stage: this.courseType,
         task: this.taskCount,
         tool: this.toolindex,
-        content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+        content: JSON.stringify(this.wordJson),
         type: 13,
         atool: 52,
       }];
@@ -5756,7 +5756,7 @@ export default {
         stage: this.courseType,
         task: this.taskCount,
         tool: this.toolindex,
-        content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+        content: JSON.stringify(this.wordJson),
         type: 13,
         atool: 52,
       }];
@@ -5841,7 +5841,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -5887,7 +5887,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -8191,8 +8191,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -8226,8 +8226,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -8727,7 +8727,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -9020,7 +9020,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -9258,7 +9258,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -9302,7 +9302,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -9346,7 +9346,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -9390,7 +9390,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -10710,7 +10710,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.chapInfoList),
           uid: this.userid,
           unitIndex: this.courseType,
         },

+ 3 - 3
src/components/student/studyStudent.vue

@@ -2304,7 +2304,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -2343,7 +2343,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -3589,7 +3589,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax

+ 3 - 3
src/components/student/studyStudentJiu.vue

@@ -1405,7 +1405,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -1444,7 +1444,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -2649,7 +2649,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax

+ 3 - 3
src/components/studio/studyStudent.vue

@@ -1391,7 +1391,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -1430,7 +1430,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -2626,7 +2626,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax

+ 17 - 17
src/components/studyStudent.vue

@@ -12852,7 +12852,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12888,7 +12888,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12928,7 +12928,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12958,7 +12958,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -13043,7 +13043,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -13089,7 +13089,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -16077,8 +16077,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16111,8 +16111,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16677,7 +16677,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16716,7 +16716,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -17102,7 +17102,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -17368,7 +17368,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17412,7 +17412,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17456,7 +17456,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17500,7 +17500,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/trainCourse/easy2/studyStudent.vue

@@ -12557,7 +12557,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12593,7 +12593,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12633,7 +12633,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12663,7 +12663,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12748,7 +12748,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12794,7 +12794,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15695,8 +15695,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15729,8 +15729,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16295,7 +16295,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16334,7 +16334,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16720,7 +16720,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16986,7 +16986,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17030,7 +17030,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17074,7 +17074,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17118,7 +17118,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/trainCourse/easy3/studyStudent.vue

@@ -12546,7 +12546,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12582,7 +12582,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12622,7 +12622,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12652,7 +12652,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12737,7 +12737,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12783,7 +12783,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15685,8 +15685,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15719,8 +15719,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16288,7 +16288,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16327,7 +16327,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16713,7 +16713,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16980,7 +16980,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17024,7 +17024,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17068,7 +17068,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17112,7 +17112,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/trainCourse/studyStudent.vue

@@ -12528,7 +12528,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12564,7 +12564,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12604,7 +12604,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12634,7 +12634,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12719,7 +12719,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12765,7 +12765,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15671,8 +15671,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15705,8 +15705,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16271,7 +16271,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16310,7 +16310,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16696,7 +16696,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16962,7 +16962,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17006,7 +17006,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -17050,7 +17050,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -17094,7 +17094,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/横板极简和任务模式/easy2/studyStudent.vue

@@ -12757,7 +12757,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12786,7 +12786,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12815,7 +12815,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12846,7 +12846,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12932,7 +12932,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12978,7 +12978,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15444,8 +15444,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15479,8 +15479,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -16022,7 +16022,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -16061,7 +16061,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16411,7 +16411,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16660,7 +16660,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16704,7 +16704,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16748,7 +16748,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -16792,7 +16792,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];

+ 17 - 17
src/components/横板极简和任务模式/easy3/studyStudent.vue

@@ -12777,7 +12777,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12806,7 +12806,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson),
           type: 10,
         },
       ];
@@ -12835,7 +12835,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12866,7 +12866,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.wordJson),
           type: 13,
           atool: 52,
         },
@@ -12952,7 +12952,7 @@ export default {
           stage: this.courseType,
           task: i,
           tool: this.toolindex,
-          content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(_files),
         },
       ];
       this.ajax
@@ -12998,7 +12998,7 @@ export default {
             type: typesql,
             groupIndex: this.groupIndex,
             url: this.studyJuri[0].cover[0].url,
-          }).replaceAll(/%/g, "%25"),
+          }),
           type: 11,
           atool: 49,
           text: "",
@@ -15462,8 +15462,8 @@ export default {
     },
     addQuestion() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15497,8 +15497,8 @@ export default {
     },
     addQuestionTeacher() {
       this.answerList.push({
-        answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
-        answer: this.questionAnswer.replaceAll(/%/g, "%25"),
+        answerTitle: this.answerQ,
+        answer: this.questionAnswer,
       });
       let params = [
         {
@@ -15912,7 +15912,7 @@ export default {
           uid: this.userid,
           s: this.courseType,
           t: this.taskCount,
-          c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
+          c: type == "1" ? this.pzConText : content,
           type: type,
         },
       ];
@@ -15951,7 +15951,7 @@ export default {
           type: "1",
           ct: 2,
           pid: this.replyPid,
-          c: this.reply.replaceAll(/%/g, "%25"),
+          c: this.reply,
         },
       ];
       this.ajax
@@ -16301,7 +16301,7 @@ export default {
       let params = [
         {
           cid: this.id,
-          state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
+          state: JSON.stringify(_state),
         },
       ];
       this.ajax
@@ -16550,7 +16550,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16594,7 +16594,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 2,
         },
       ];
@@ -16638,7 +16638,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];
@@ -16682,7 +16682,7 @@ export default {
           stage: this.courseType,
           task: this.taskCount,
           tool: this.toolindex,
-          content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.askList),
           type: 8,
         },
       ];