feat(Design): 新增填空题组件并优化问卷发布功能- 新增 CompletionQuestionAction 组件用于填空题配置
-重命名 RateAction 为 RateQuestionAction,优化打分题配置- 更新 QuestionAction 组件,支持多选、打分和填空题型 - 改进问卷发布页面,增加复制链接和下载二维码功能 - 优化代码结构,提高可维护性和可读性
This commit is contained in:
@@ -242,8 +242,7 @@ watch(
|
||||
() => questionInfo.value.questions[chooseQuestionIndex.value],
|
||||
(newVal) => {
|
||||
if (newVal) {
|
||||
console.log(newVal, 232313);
|
||||
saveQueItem(questionInfo.value.logics, [newVal]);
|
||||
// saveQueItem(questionInfo.value.logics, [newVal]);
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
@@ -380,6 +379,7 @@ const updateElement = (newElement) => {
|
||||
if (index !== -1) {
|
||||
questionInfo.value.questions.splice(index, 1, newElement);
|
||||
}
|
||||
saveQueItem(questionInfo.value.logics, [newElement]);
|
||||
};
|
||||
onMounted(() => {
|
||||
questionInfo.value = store.questionsInfo.value;
|
||||
|
||||
Reference in New Issue
Block a user