提交 547ab769 编写于 作者: fxy060608's avatar fxy060608

fix(uts): add registerUTSInterface

上级 92f94644
......@@ -271,6 +271,7 @@ const third = [
'initUTSPackageName',
'requireUTSPlugin',
'registerUTSPlugin',
'registerUTSInterface',
]
const ad = [
......
......@@ -40,6 +40,10 @@ function resolveSyncResult(res, returnOptions, instanceId, proxy) {
}
if (returnOptions) {
if (returnOptions.type === 'interface' && typeof res.params === 'number') {
// 返回了 0
if (!res.params) {
return null;
}
if (res.params === instanceId && proxy) {
return proxy;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册