From fc1e036d1e45ede32c60c5d374ca220cff64eec3 Mon Sep 17 00:00:00 2001 From: yindongqi Date: Tue, 29 Jul 2025 15:56:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/login/Account.vue | 2 +- src/components/login/Account2.vue | 2 +- src/components/study/Exam - 副本 (2).vue | 1 - src/components/study/Exam.vue | 36 +++++++++++++++++++++++- src/components/study/courseDetail.vue | 4 +-- 5 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/components/login/Account.vue b/src/components/login/Account.vue index 7eb111b..af47a51 100644 --- a/src/components/login/Account.vue +++ b/src/components/login/Account.vue @@ -63,7 +63,7 @@ export default { if (res.data.is_need_check_face == 1) { //需要人脸识别,只能微信客户端登录 var ua = window.navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) != "micromessenger") { + if (!/MicroMessenger/i.test(ua) || /wxwork/i.test(ua)) { this.$router.push({ path: "/wxerror" }); } else { Toast(res.msg); diff --git a/src/components/login/Account2.vue b/src/components/login/Account2.vue index 56a7e11..a1fec60 100644 --- a/src/components/login/Account2.vue +++ b/src/components/login/Account2.vue @@ -71,7 +71,7 @@ export default { if (res.data.is_need_check_face == 1) { //需要人脸识别,只能微信客户端登录 var ua = window.navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) != "micromessenger") { + if (!/MicroMessenger/i.test(ua) || /wxwork/i.test(ua)) { this.$router.push({ path: "/wxerror" }); } else { Toast(res.msg); diff --git a/src/components/study/Exam - 副本 (2).vue b/src/components/study/Exam - 副本 (2).vue index 0034fef..77e7567 100644 --- a/src/components/study/Exam - 副本 (2).vue +++ b/src/components/study/Exam - 副本 (2).vue @@ -397,7 +397,6 @@ this.getConfig() }, } - // git提交测试 +