lilishop-uniapp/js_sdk/u-draw-poster/utils/global.js

12 lines
414 B
JavaScript
Raw Normal View History

2021-05-13 11:03:32 +08:00
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;