refactor(Home): 优化创建问卷和问题列表组件
- 修改 CreateSurvey 组件中项目名称的默认值为 "请输入问卷标题" - 优化 QuestionList 组件中 slideChange 函数的参数类型定义
This commit is contained in:
@@ -30,7 +30,7 @@ const createdQuestion = (item) => {
|
||||
const query = {
|
||||
group_id: 0,
|
||||
source: 1,
|
||||
project_name: `${item.title ? item.title : 'z'} `,
|
||||
project_name: `${item.title ? item.title : '请输入问卷标题'} `,
|
||||
remarks: item.title
|
||||
? '为优化活动服务品质,烦请完成问卷,感谢配合!您的反馈至关重要!'
|
||||
: '请输入问卷描述',
|
||||
|
||||
@@ -20,7 +20,7 @@ const disableInsight = ref(true);
|
||||
|
||||
// 定义事件
|
||||
const emit = defineEmits(['slideChange']);
|
||||
const slideChange = function (swiper) {
|
||||
const slideChange = function (swiper: any) {
|
||||
parentRef.value.resize();
|
||||
emit('slideChange', { swiper, activeIndex: swiper.activeIndex });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user