global.js 403 B

1234567891011
  1. var _a;
  2. 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;
  3. /** 全局对象 */
  4. const _uni = (function () {
  5. if (typeof uni != "undefined")
  6. return uni;
  7. if (typeof wx != "undefined")
  8. return wx;
  9. return uni;
  10. })();
  11. export default _uni;