mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
commit message
This commit is contained in:
11
js_sdk/u-draw-poster/utils/global.js
Normal file
11
js_sdk/u-draw-poster/utils/global.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var _a;
|
||||
export const PLATFORM = typeof process !== 'undefined' ? (_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.VUE_APP_PLATFORM : undefined;
|
||||
/** 全局对象 */
|
||||
const _uni = (function () {
|
||||
if (typeof uni != "undefined")
|
||||
return uni;
|
||||
if (typeof wx != "undefined")
|
||||
return wx;
|
||||
return uni;
|
||||
})();
|
||||
export default _uni;
|
||||
Reference in New Issue
Block a user