提交 e5518320 编写于 作者: Anne_LXM's avatar Anne_LXM

仅app端支持一键登录

上级 36c5cdd7
......@@ -14,7 +14,7 @@ export default {
},
"loginTypes":[
"username",
// #ifdef uniVersion >= 3.98
// #ifdef APP && uniVersion >= 3.98
"univerify",
// #endif
"smsCode",
......
......@@ -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()
......
......@@ -17,7 +17,7 @@ const loginTypes = config.getArray<string>('loginTypes');
// buttonsList.push(buttons)
// })
// #ifdef uniVersion >= 3.98
// #ifdef APP && uniVersion >= 3.98
const univerifyManager = uni.getUniverifyManager();
export default class Univerify {
......
......@@ -33,7 +33,7 @@
<script>
import { state } from '@/uni_modules/uni-id-pages-x/store.uts';
import config from '@/uni_modules/uni-id-pages-x/config.uts';
// #ifdef uniVersion >= 3.98
// #ifdef APP && uniVersion >= 3.98
import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts'
// #endif
export default {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册