提交 e3b3bf8a 编写于 作者: L liusaimei

modify dataShare

Signed-off-by: Nliusaimei <lirui.wx1229126@huawei.com>
上级 b783c254
......@@ -484,7 +484,7 @@ function onPublishCallback(err, node:dataShare.PublishedDataChangeNode) {
for (let i = 0; i < node.data.length; i++) {
console.info("onPublishCallback node " + typeof node.data[i].data);
if (typeof node.data[i].data != 'string') {
let array:ArrayBuffer = node.data[i].data;
let array:ArrayBuffer = node.data[i].data as ArrayBuffer;
let data:Uint8Array = new Uint8Array(array);
console.info("onPublishCallback " + i + " " + JSON.stringify(data));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册