zhangjie 3 months ago
parent
commit
c6c51c6d76

+ 3 - 1
src/modules/mark/components/markParam/MarkParamGroup.vue

@@ -209,7 +209,9 @@ export default {
     },
     async getCardPages() {
       const detData = await cardDetail(this.basicInfo.cardId);
-      const cardContent = JSON.parse(detData.content);
+      const cardContent = detData?.content
+        ? JSON.parse(detData.content)
+        : { pages: [] };
       this.cardPages = cardContent.pages;
     },
     async updateList() {

+ 2 - 0
src/modules/mark/components/markParam/MarkParamObjectiveAnswer.vue

@@ -469,6 +469,8 @@ export default {
         "提示",
         {
           type: "warning",
+          cancelButtonText: "不保存",
+          confirmButtonText: "保存",
         }
       ).catch(() => {});
       if (confirm !== "confirm") {