natasha 1 year ago
parent
commit
a490ee5649

+ 1 - 1
src/components/Adult/Preview.vue

@@ -1191,7 +1191,7 @@ export default {
   },
   // 生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    console.log("2024-04-02 17:22");
+    console.log("2024-04-07 17:22");
   },
   // 生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {

+ 16 - 9
src/components/Adult/preview/components/Freewrite.vue

@@ -221,15 +221,22 @@ export default {
           };
           let MethodName =
             "teaching-practice_manager-SaveMyHZHandwrittenRecord";
-          LearnWebSI(MethodName, data).then(res => {
-            if (res.status === 1) {
-              this.$message.success("保存成功!");
-              obj.hz_handwritten_record_id = res.hz_handwritten_record_id;
-            }
-            this.imgarr.push(obj);
-            this.saveShow = false;
-            this.handelReset();
-          });
+          LearnWebSI(MethodName, data)
+            .then(res => {
+              if (res.status === 1) {
+                this.$message.success("保存成功!");
+                obj.hz_handwritten_record_id = res.hz_handwritten_record_id;
+              }
+              this.imgarr.push(obj);
+              this.saveShow = false;
+              this.handelReset();
+            })
+            .catch(res => {
+              console.log(res);
+              this.imgarr.push(obj);
+              this.saveShow = false;
+              this.handelReset();
+            });
           //console.log(Book_img);
           // this.textOcr(res.replace("data:image/png;base64,", ""));
         })