提交 7b026bf3 编写于 作者: Q qiang

feat(x): iOS 实现 uni.env

上级 92d5b916
......@@ -2768,6 +2768,11 @@ var API_GET_LAUNCH_OPTIONS_SYNC = "getLaunchOptionsSync";
var getLaunchOptionsSync = /* @__PURE__ */ defineSyncApi(API_GET_LAUNCH_OPTIONS_SYNC, () => {
return getLaunchOptions();
});
var env = {
USER_DATA_PATH: "unifile://usr/",
CACHE_PATH: "unifile://cache/",
SANDBOX_PATH: "unifile://sandbox/"
};
var callbackId = 1;
var proxy;
var callbacks = {};
......@@ -3178,6 +3183,7 @@ const uni$1 = /* @__PURE__ */ Object.defineProperty({
__log__,
addInterceptor,
createSelectorQuery,
env,
getElementById,
getLaunchOptionsSync,
hideTabBar,
......
export const env = {
USER_DATA_PATH: 'unifile://usr/',
CACHE_PATH: 'unifile://cache/',
SANDBOX_PATH: 'unifile://sandbox/',
}
......@@ -32,6 +32,7 @@ export { stopPullDownRefresh } from './ui/stopPullDownRefresh'
export { $emit, $off, $on, $once } from './base/event-bus'
export { removeInterceptor, addInterceptor } from './base/interceptor'
export { getLaunchOptionsSync } from './base/getLaunchOptionsSync'
export { env } from './base/env'
export {
initUTSProxyClass,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册