提交 0b7fa4a9 编写于 作者: 雪洛's avatar 雪洛

feat(harmony): 支持wxs、renderjs

上级 b67da3a0
import { getRouteOptions, subscribeServiceMethod } from '@dcloudio/uni-core' import { getRouteOptions, subscribeServiceMethod } from '@dcloudio/uni-core'
import { WEB_INVOKE_APPSERVICE, addLeadingSlash } from '@dcloudio/uni-shared' import {
ON_WXS_INVOKE_CALL_METHOD,
WEB_INVOKE_APPSERVICE,
addLeadingSlash,
} from '@dcloudio/uni-shared'
import { import {
ON_WEBVIEW_READY, ON_WEBVIEW_READY,
VD_SYNC, VD_SYNC,
...@@ -20,6 +24,7 @@ import { ...@@ -20,6 +24,7 @@ import {
} from '@dcloudio/uni-app-plus/service/framework/app/subscriber/webInvokeAppService' } from '@dcloudio/uni-app-plus/service/framework/app/subscriber/webInvokeAppService'
import { subscribeBase64ToTempFilePath } from '../../../api/context/canvas' import { subscribeBase64ToTempFilePath } from '../../../api/context/canvas'
import { subscribeGetLocation } from '../../../api/location/getLocation' import { subscribeGetLocation } from '../../../api/location/getLocation'
import { onWxsInvokeCallMethod } from '@dcloudio/uni-app-plus/service/framework/app/subscriber/wxs'
export function initSubscribeHandlers() { export function initSubscribeHandlers() {
const { subscribe, subscribeHandler, publishHandler } = UniServiceJSBridge const { subscribe, subscribeHandler, publishHandler } = UniServiceJSBridge
...@@ -47,7 +52,7 @@ export function initSubscribeHandlers() { ...@@ -47,7 +52,7 @@ export function initSubscribeHandlers() {
subscribe(WEBVIEW_REMOVED, onWebviewRemoved) subscribe(WEBVIEW_REMOVED, onWebviewRemoved)
subscribeBase64ToTempFilePath() subscribeBase64ToTempFilePath()
subscribeGetLocation() subscribeGetLocation()
// TODO subscribe(ON_WXS_INVOKE_CALL_METHOD, onWxsInvokeCallMethod) subscribe(ON_WXS_INVOKE_CALL_METHOD, onWxsInvokeCallMethod)
const routeOptions = getRouteOptions( const routeOptions = getRouteOptions(
addLeadingSlash(__uniConfig.entryPagePath!) addLeadingSlash(__uniConfig.entryPagePath!)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册