微信小程序发布试用版本
This commit is contained in:
22
common/uni-id-pages-init.js
Normal file
22
common/uni-id-pages-init.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// 简化版的 uni-id-pages 初始化
|
||||
// 由于项目不使用 uniCloud,移除了所有 uniCloud 相关功能
|
||||
|
||||
export default async function () {
|
||||
// #ifdef APP-PLUS
|
||||
// 如果配置的登录功能有一键登录,执行预登录(异步)
|
||||
// 注意:这里需要从配置中读取,但由于配置在子包中,暂时注释
|
||||
// 如果需要一键登录功能,可以在这里添加配置
|
||||
// if (loginTypes.includes('univerify')) {
|
||||
// uni.preLogin({
|
||||
// provider: 'univerify',
|
||||
// complete: e => {
|
||||
// // console.log(e);
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// #endif
|
||||
|
||||
// 其他初始化逻辑已移除(因为不需要 uniCloud)
|
||||
console.log('[uni-id-pages] 初始化完成(简化版,无 uniCloud)')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user