index.js 486 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2
import initOn from 'uni-core/service/bridge/on'
import initSubscribe from 'uni-core/service/bridge/subscribe'
fxy060608's avatar
fxy060608 已提交
3

fxy060608's avatar
fxy060608 已提交
4
import {
fxy060608's avatar
fxy060608 已提交
5 6
  uni
} from './uni'
fxy060608's avatar
fxy060608 已提交
7

fxy060608's avatar
fxy060608 已提交
8
import {
fxy060608's avatar
fxy060608 已提交
9 10 11
  getApp,
  getCurrentPages
}
fxy060608's avatar
fxy060608 已提交
12
  from 'uni-core/service/plugins/app'
fxy060608's avatar
fxy060608 已提交
13

fxy060608's avatar
fxy060608 已提交
14 15 16 17
initOn(UniServiceJSBridge.on, {
  getApp,
  getCurrentPages
})
fxy060608's avatar
fxy060608 已提交
18

fxy060608's avatar
fxy060608 已提交
19 20 21
initSubscribe(UniServiceJSBridge.subscribe, {
  getApp,
  getCurrentPages
fxy060608's avatar
fxy060608 已提交
22 23
})

fxy060608's avatar
fxy060608 已提交
24
export default uni
fxy060608's avatar
fxy060608 已提交
25 26 27 28
export {
  getApp,
  getCurrentPages
}
fxy060608's avatar
fxy060608 已提交
29
  from 'uni-core/service/plugins/app'