From 1961068a5d125d92b1a3ebb0c814c42b1183ffec Mon Sep 17 00:00:00 2001 From: mengfanliang Date: Thu, 27 Feb 2025 15:03:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9F=B9=E8=AE=AD?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A6=96=E6=AC=A1=E8=BF=9B=E5=85=A5=E9=A2=91?= =?UTF-8?q?=E7=B9=81=E8=AE=A4=E8=AF=81=E4=BA=BA=E8=84=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 2 +- pages/train_management/index.vue | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index a7c821a..7314d22 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -38,7 +38,7 @@ export default { return { publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2zCyUYSD0pNrbtaYdvGfHfWoRV+fo/2N9O2PLLz/jZvMkigkq4eAq4JO+Ek0wDHI9WxP6iTSLYCHhIOs9CQTPvyldJFm8riZtQZlBTD8Plkb3rjrgwTqbBi3w3+HKYdkSvGFXJIdSOPbpXnj5BzN8vlVaybs24R/vpUzG9178lwIDAQAB', form: { - userName: '14730797906', + userName: '13444444444', userPwd: 'Aa@123456789' } } diff --git a/pages/train_management/index.vue b/pages/train_management/index.vue index ce73b78..f89a303 100644 --- a/pages/train_management/index.vue +++ b/pages/train_management/index.vue @@ -51,7 +51,6 @@ import store from '@/store/index'; export default { data() { return { - verification: store.state.verification, // 本地读取人脸检测验证状态 pageSize: 10, currentPage: 1, totalPage: 0, @@ -71,11 +70,6 @@ export default { await this.resetList() }, - async onLoad(query) { - // await this.getUserFaceCompleted() - // await this.resetList() - }, - methods: { async resetList() { this.pageSize = 10 @@ -86,7 +80,7 @@ export default { async getData() { // verification --> 0: 未完成人脸认证 // verification --> 1: 已完成人脸认证 - if (this.verification === '1') { + if (store.getters.getVerification === '1') { let resData = await getClassList({ showCount: this.pageSize, currentPage: this.currentPage @@ -155,7 +149,7 @@ export default { // const userFaceData = await getIsUploadFace() // verification --> 0: 未完成人脸认证 // verification --> 1: 已完成人脸认证 - if (this.verification === '0') { + if (store.getters.getVerification === '0') { uni.showModal({ title: '温馨提示', content: '检测到您还未完成人脸信息读取,请先完成人脸信息认证!',