Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问卷编辑在题型切换选中状态时会触发两次选中状态事件 #122

Closed
alwayrun opened this issue May 16, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@alwayrun
Copy link
Contributor

alwayrun commented May 16, 2024

分类

前端

系统

Mac

复现步骤

questionModule/PreviewPanel.vue
在下列函数处增加 console.log(currentEditOne) 测试复现问题

async onSelectEditOne(currentEditOne) {
    console.log(currentEditOne)
    this.$store.commit('edit/setCurrentEditOne', currentEditOne)
},

预期结果

不同题型切换只会触发一次选中,对于标题区域及提交区域切换只触发了一次选中,但中间问卷配置区域题型切换则触发两次选中

实际结果

第一次选中标题(当前选中区域在标题,则控制台输出为 mainTitle)
image

第二次选中第一题(当前选中区域在第一题,则控制台输出为第一行两行 索引号)
image

第三次选中第二题(当前选中区域在第二题,则控制台输出为第二两行 索引号)
image

@soarpenguin @lijinsuo @Trinea @MingliangT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants