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) => {