diff --git a/src/stores/Questions/useQuestionStore.ts b/src/stores/Questions/useQuestionStore.ts index 27608d8..68b0a44 100644 --- a/src/stores/Questions/useQuestionStore.ts +++ b/src/stores/Questions/useQuestionStore.ts @@ -52,7 +52,7 @@ export const useQuestionStore = defineStore('questionStore', () => { let { data } = await AnswerApi.getQuetions({ id: urlParamSearch.get('sn'), data: { - is_preview: 1, + is_preview: 0, is_template: urlParamSearch.get('is_template') || 0, source: urlParamSearch.get('source') ?? '' } diff --git a/src/views/Survey/Index.vue b/src/views/Survey/Index.vue index 6e3d572..972976f 100644 --- a/src/views/Survey/Index.vue +++ b/src/views/Survey/Index.vue @@ -7,13 +7,13 @@ @click="() => $router.push({ name: 'search' })" /> --> -
+
- + diff --git a/src/views/Survey/views/Analysis/Index.vue b/src/views/Survey/views/Analysis/Index.vue index b428035..020bcbf 100644 --- a/src/views/Survey/views/Analysis/Index.vue +++ b/src/views/Survey/views/Analysis/Index.vue @@ -11,6 +11,7 @@ import Wait from '@/views/Survey/views/Analysis/components/Wait/Index.vue'; import AnalysisInfo from '@/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue'; import SearchBar from '@/components/Search/Index.vue'; import { fetchSingleSurvey } from '@/hooks/request/useSurvey'; +import { onMounted, onUnmounted } from 'vue'; const route = useRoute(); @@ -28,6 +29,11 @@ const { currentSurvey } = fetchSingleSurvey(sn.value); aiInsightsConfig.value.message = ''; const { questionAnalysis } = useFetchAnalysis(sn.value); + +onUnmounted(() => { + // 当组件取消挂载之后, 手动调节 aiInsightsConfig 的状态 + aiInsightsConfig.value.visible = false; +});