|
@@ -1285,7 +1285,7 @@ export default {
|
|
|
});
|
|
|
//提交拍照记录
|
|
|
if (await this.postStudyRecord(0, photoUrl, compareFaceData)) {
|
|
|
- this.needPhoto = false
|
|
|
+ this.needPhoto = false;
|
|
|
if (this.openPhotoStatus == 1) {
|
|
|
this.examSubmit();
|
|
|
return;
|
|
@@ -1987,7 +1987,7 @@ export default {
|
|
|
...form
|
|
|
})
|
|
|
.then(res => {
|
|
|
- this.mustBack = true
|
|
|
+ this.mustBack = true;
|
|
|
clearInterval(this.timer);
|
|
|
this.$message({
|
|
|
type: "success",
|
|
@@ -2024,7 +2024,7 @@ export default {
|
|
|
this.$message.error(err.msg);
|
|
|
console.log("拍照不够触发");
|
|
|
this.openPhotoStatus = 1;
|
|
|
- this.needPhoto = true
|
|
|
+ this.needPhoto = true;
|
|
|
this.openPhoto();
|
|
|
} else {
|
|
|
this.$message.error(err.msg);
|
|
@@ -2115,7 +2115,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
- if (this.mustBack || this.$refs.takePicture.photoBadStatus) {
|
|
|
+ if (
|
|
|
+ this.mustBack ||
|
|
|
+ this.$refs.takePicture.photoBadStatus ||
|
|
|
+ (to.path == "/home" && !this.$store.state.userInfo)
|
|
|
+ ) {
|
|
|
next();
|
|
|
} else {
|
|
|
next(false);
|