Files
smartDriveEEUniApp/uni_modules/uni-id-pages/init.js
2026-01-31 21:10:40 +08:00

24 lines
780 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 简化版的 uni-id-pages 初始化
// 由于项目不使用 uniCloud移除了所有 uniCloud 相关功能
// 主包中使用 common/uni-id-pages-init.js此文件保留用于子包兼容性
// 导入配置在子包中config.js 也在同一子包中,可以直接导入)
import config from './config.js'
export default async function () {
// #ifdef APP-PLUS
// 如果配置的登录功能有一键登录,执行预登录(异步)
if (config && config.loginTypes && config.loginTypes.includes('univerify')) {
uni.preLogin({
provider: 'univerify',
complete: e => {
// console.log(e);
}
})
}
// #endif
// 其他初始化逻辑已移除(因为不需要 uniCloud
// 主包中会调用 common/uni-id-pages-init.js 进行初始化
}