Bläddra i källkod

fix: 调整必填字段

周玉环 2 dagar sedan
förälder
incheckning
20d4a41ff4

+ 4 - 1
xinkeaboard-promotion-portal/src/components/AiAnalysis.vue

@@ -10,6 +10,8 @@
 <script lang="ts" setup>
 import DOMPurify from 'dompurify';
 import MarkdownIt from 'markdown-it';
+import { checkLimit, incrementCount } from '@/utils/limit';
+
 
 import { ref, computed } from 'vue';
 import { useMainStore } from '@/store';
@@ -47,8 +49,9 @@ const getQualitativeInfo = () => {
     })
     .catch((err) => {
       fail.value = true;
-    }).finally(() => {
+    }).finally(async () => {
       mainStore.setIsLoadOver(true);
+      await incrementCount();
     })
 };
 

+ 0 - 1
xinkeaboard-promotion-portal/src/components/TopContent.vue

@@ -117,7 +117,6 @@ const acceptRecod = async () => {
     });
     return;
   }
-  await incrementCount();
   const formData = getFormData();
   // const { competitorWebsite } = formData;
   // if (!competitorWebsite) {