feat: 新增组件

- 新增投放和新建问卷组件
- 首页修正模板显示异常问题
- 代码自动格式化
This commit is contained in:
Huangzhe
2025-03-05 10:22:25 +08:00
parent 943cc7eeca
commit 6df0b0d320
7 changed files with 315 additions and 30 deletions

View File

@@ -162,8 +162,8 @@ const getSkipTypeText = (skipType) => {
const ls = [];
logics.map((item) => {
if (
item.skip_type === skipType &&
item.question_index === activeQuestion.value.question_index
item.skip_type === skipType
&& item.question_index === activeQuestion.value.question_index
) {
ls.push(item);
}
@@ -179,13 +179,13 @@ const getSkipTypeText = (skipType) => {
const questionSetting = (type) => {
switch (type) {
case 'before':
questionBeforeShow.value = true;
case 'before':
questionBeforeShow.value = true;
break;
case 'after':
questionBeforeShow.value = true;
break;
break;
case 'after':
questionBeforeShow.value = true;
break;
}
skipType.value = type === 'before' ? 0 : 1;
};