提交 cf60fff0 编写于 作者: @ @shi-xiaoxiao-iris

修改示例

Signed-off-by: N@shi-xiaoxiao-iris <shixiaoxiao2@huawei.com>
上级 6c51de5f
...@@ -871,7 +871,7 @@ ui状态变更回调。 ...@@ -871,7 +871,7 @@ ui状态变更回调。
```js ```js
try { try {
dmClass.on('uiStateChange', (data) => { dmInstance.on('uiStateChange', (data) => {
console.log("uiStateChange executed, dialog closed" + JSON.stringify(data)) console.log("uiStateChange executed, dialog closed" + JSON.stringify(data))
var tmpStr = JSON.parse(data.param) var tmpStr = JSON.parse(data.param)
this.isShow = tmpStr.verifyFailed this.isShow = tmpStr.verifyFailed
...@@ -912,7 +912,7 @@ off(type: 'uiStateChange', callback?: Callback<{ param: string}>): void; ...@@ -912,7 +912,7 @@ off(type: 'uiStateChange', callback?: Callback<{ param: string}>): void;
```js ```js
try { try {
dmClass.off('uiStateChange'); dmInstance.off('uiStateChange');
} catch (err) { } catch (err) {
console.error("uiStateChange errCode:" + err.code + ",errMessage:" + err.message); console.error("uiStateChange errCode:" + err.code + ",errMessage:" + err.message);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册