Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
import { wrapper } from 'uni-helpers/api' import * as baseApi from './api' // import * as platformApi from 'uni-platform/view/api' const uni = Object.create(null) /* eslint-disable no-undef */ uni.version = __VERSION__ Object.keys(baseApi).forEach(name => { uni[name] = wrapper(name, baseApi[name]) }) // Object.keys(platformApi).forEach(name => { // uni[name] = wrapper(name, api[name]) // }) export default uni