添加callback();

dev_2022-05-11
yujialong 3 years ago
parent 4a0fc3801a
commit 6496f2b648
  1. 2
      src/pages/student/list/index.vue

@ -267,6 +267,7 @@ export default {
var pattern = /^[A-Za-z0-9]*$/; var pattern = /^[A-Za-z0-9]*$/;
if(pattern.test(value)){ if(pattern.test(value)){
this.accountChange() this.accountChange()
callback();
}else{ }else{
callback(new Error('请输入正确账号格式')); callback(new Error('请输入正确账号格式'));
} }
@ -279,6 +280,7 @@ export default {
var pattern = /^[A-Za-z0-9]*$/; var pattern = /^[A-Za-z0-9]*$/;
if(pattern.test(value)){ if(pattern.test(value)){
this.worknumberChange() this.worknumberChange()
callback();
}else{ }else{
callback(new Error('请输入正确学生学号格式')); callback(new Error('请输入正确学生学号格式'));
} }

Loading…
Cancel
Save