fix(Survey): 修复预览页面点击下一题时错误提示未清除的问题
- 在 next 函数中添加代码,清除所有问题的错误提示 - 优化用户体验,确保每次翻页时重新开始校验答案
This commit is contained in:
@@ -619,6 +619,10 @@ async function previous() {
|
|||||||
|
|
||||||
// 下一页
|
// 下一页
|
||||||
async function next(callbackBeforePage) {
|
async function next(callbackBeforePage) {
|
||||||
|
// 先清除所有错误
|
||||||
|
questions.value.map((ques) => {
|
||||||
|
ques.error = '';
|
||||||
|
});
|
||||||
// 开始校验答案
|
// 开始校验答案
|
||||||
startValidate();
|
startValidate();
|
||||||
// console.log(`click next button`, prevLoading.value || loading.value);
|
// console.log(`click next button`, prevLoading.value || loading.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user