This commit is contained in:
Luk
2024-06-24 09:49:28 +08:00
parent 011853758f
commit fbaf230f48
3 changed files with 26 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
// typeof(globalThis.getApp)==='function' // 在 web/app 里都为 true
module.exports =
process?.release?.name === 'node' ? require('./coco-nodejs.js')
globalThis.process?.release?.name === 'node' ? require('./coco-nodejs.js')
: globalThis.uniCloud ? require('./coco-unicloud.js')
: globalThis.window && globalThis.location ? require('./coco-browser.js')
: globalThis.uni && globalThis.getApp ? require('./coco-app.js')