From 25d047341a64a44732c362707615a0ff25346c14 Mon Sep 17 00:00:00 2001 From: liujun Date: Mon, 10 Mar 2025 16:40:10 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=9C=A8?= =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95=E6=83=85=E5=86=B5=E4=B8=8B=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 079eada..8731e5e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -98,11 +98,13 @@ export default { return this.$store.getters.getUserInfo } }, - onLoad() { - // 获取系统版本号, 其函数主体在 /utils/updateVersion.js 文件内查找 - this.fnUpdateVersion(false) - this.getUserFaceCompleted() - }, + onLoad() { + if (this.$store.getters.getUserInfo.USER_ID) { + // 获取系统版本号, 其函数主体在 /utils/updateVersion.js 文件内查找 + this.fnUpdateVersion(false) + this.getUserFaceCompleted() + } + }, methods: { handleGetClassInfoByParams(classId) { return new Promise(async (resolve, reject) => {