From e5518320ed2ab2e3a7927824a2a6de349039cde2 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Tue, 28 May 2024 19:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85app=E7=AB=AF=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages-x/config.uts | 2 +- uni_modules/uni-id-pages-x/init.uts | 4 ++-- uni_modules/uni-id-pages-x/lib/Univerify.uts | 2 +- uni_modules/uni-id-pages-x/pages/login/login.uvue | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-id-pages-x/config.uts b/uni_modules/uni-id-pages-x/config.uts index 5036b39..5552c5a 100644 --- a/uni_modules/uni-id-pages-x/config.uts +++ b/uni_modules/uni-id-pages-x/config.uts @@ -14,7 +14,7 @@ export default { }, "loginTypes":[ "username", - // #ifdef uniVersion >= 3.98 + // #ifdef APP && uniVersion >= 3.98 "univerify", // #endif "smsCode", diff --git a/uni_modules/uni-id-pages-x/init.uts b/uni_modules/uni-id-pages-x/init.uts index f7217a4..a6e00af 100644 --- a/uni_modules/uni-id-pages-x/init.uts +++ b/uni_modules/uni-id-pages-x/init.uts @@ -15,7 +15,7 @@ const loginTypes = configLoginTypes == null ? [] as string[] : configLoginTypes; const debug = config.getBoolean('debug') as boolean; -// #ifdef uniVersion >= 3.98 +// #ifdef APP && uniVersion >= 3.98 import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts' // #endif @@ -78,7 +78,7 @@ export default async function () { }) } - // #ifdef uniVersion >= 3.98 + // #ifdef APP && uniVersion >= 3.98 // 如果uni-id-pages配置的登录功能有一键登录,有则执行预登录(异步) if (loginTypes.includes('univerify')) { const myUniverify = new Univerify() diff --git a/uni_modules/uni-id-pages-x/lib/Univerify.uts b/uni_modules/uni-id-pages-x/lib/Univerify.uts index fd41aee..dd1d7e4 100644 --- a/uni_modules/uni-id-pages-x/lib/Univerify.uts +++ b/uni_modules/uni-id-pages-x/lib/Univerify.uts @@ -17,7 +17,7 @@ const loginTypes = config.getArray('loginTypes'); // buttonsList.push(buttons) // }) -// #ifdef uniVersion >= 3.98 +// #ifdef APP && uniVersion >= 3.98 const univerifyManager = uni.getUniverifyManager(); export default class Univerify { diff --git a/uni_modules/uni-id-pages-x/pages/login/login.uvue b/uni_modules/uni-id-pages-x/pages/login/login.uvue index be8e94d..3d857f8 100644 --- a/uni_modules/uni-id-pages-x/pages/login/login.uvue +++ b/uni_modules/uni-id-pages-x/pages/login/login.uvue @@ -33,7 +33,7 @@