fix: 解决预览异常的问题
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user