fix: 解决预览异常的问题

This commit is contained in:
Huangzhe
2025-05-24 16:42:37 +08:00
parent 90765c98ec
commit e620146962
2 changed files with 11 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ import { AnswerApi } from '@/views/Survey/views/Preview/js/api';
import { getLanguage } from '@/views/Survey/views/Preview/js/language';
export const useQuestionStore = defineStore('questionStore', () => {
const currentSn =ref<string>('');
const questionsData = ref();
// 是否是模板模式
@@ -66,10 +68,12 @@ export const useQuestionStore = defineStore('questionStore', () => {
// console.log(`l value:`, l.value);
data.language = l.value;
questionsData.value = data;
currentSn.value = urlParamSearch.get('sn') || '';
}
return {
fetchQuestions:getQuestions,
currentSn,
questionsData,
styleInfo,
page,