|
@@ -56,11 +56,11 @@ export default {
|
|
process.env.NODE_ENV === "production" &&
|
|
process.env.NODE_ENV === "production" &&
|
|
/^\d+$/.test(this.$route.query.faceVerifyMinute)
|
|
/^\d+$/.test(this.$route.query.faceVerifyMinute)
|
|
) {
|
|
) {
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
this.$Message.info("30秒后开始活体检测");
|
|
this.$Message.info("30秒后开始活体检测");
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ this.faceIdDivTimeout = setTimeout(() => {
|
|
this.showFaceId = true;
|
|
this.showFaceId = true;
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000); // 定时做活体检测
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000); // 定时做活体检测
|
|
// }, 1 * 1000); // 定时做活体检测
|
|
// }, 1 * 1000); // 定时做活体检测
|
|
@@ -114,6 +114,8 @@ export default {
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
clearInterval(this.submitInterval);
|
|
clearInterval(this.submitInterval);
|
|
clearInterval(this.snapInterval);
|
|
clearInterval(this.snapInterval);
|
|
|
|
+ clearTimeout(this.faceIdMsgTimeout);
|
|
|
|
+ clearTimeout(this.faceIdDivTimeout);
|
|
},
|
|
},
|
|
// beforeRouteUpdate(to, from, next) {
|
|
// beforeRouteUpdate(to, from, next) {
|
|
// this.updateQuestion(next);
|
|
// this.updateQuestion(next);
|