Browse Source

修改问题

dsy 2 weeks ago
parent
commit
d7d633bb2d

+ 1 - 1
.env

@@ -11,4 +11,4 @@ VUE_APP_BookWebSI = '/GCLSBookWebSI/ServiceInterface'
 VUE_APP_EepServer = '/EEPServer/SI'
 
 #version
-VUE_APP_VERSION = '2025.11.28'
+VUE_APP_VERSION = '2025.11.29'

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "eep_page",
-  "version": "2025.11.28",
+  "version": "2025.11.29",
   "private": true,
   "main": "main.js",
   "description": "智慧梧桐数字教材编辑器",

+ 7 - 9
src/components/CommonPreview.vue

@@ -471,9 +471,9 @@ export default {
       this.simulateAnswer();
     },
     curSelectId() {
-      if (this.curToolbarIcon == 'note') {
+      if (this.curToolbarIcon === 'note') {
         this.getNote();
-      } else if (this.curToolbarIcon == 'collect') {
+      } else if (this.curToolbarIcon === 'collect') {
         this.getCollect();
       }
     },
@@ -972,12 +972,10 @@ export default {
         .catch(() => {});
     },
     delNote(id) {
-      if (!id) {
-        if (!this.oldRichData || !this.oldRichData.id) return;
-        id = this.oldRichData.id;
-      }
-      DeleteMyNote({ id }).then(() => {
-        this.allNoteList = this.allNoteList.filter((x) => x.id !== id);
+      const noteId = id || (this.oldRichData && this.oldRichData.id);
+      if (!noteId) return;
+      DeleteMyNote({ id: noteId }).then(() => {
+        this.allNoteList = this.allNoteList.filter((x) => x.id !== noteId);
       });
     },
 
@@ -1053,7 +1051,7 @@ export default {
         type: 'warning',
       })
         .then(() => {
-          DeleteMyCollect({ id: id }).then(() => {
+          DeleteMyCollect({ id }).then(() => {
             this.allCottectList = this.allCottectList.filter((x) => x.id !== id);
           });
         })

+ 1 - 1
src/views/book/courseware/preview/components/select/SelectPreview.vue

@@ -88,7 +88,7 @@ export default {
     },
     selectAnswer(mark) {
       if (this.disabled) return;
--
+
       const list = this.answer.answer_list || [];
       const isSelected = list.includes(mark);