提交 7830a6b7 作者: 翁进城

取消订阅增加回调方法

上级 fe799596
......@@ -116,13 +116,13 @@ export default {
* @param {*} topic
* @returns
*/
unsubscribe({ state }, { topic, deviceHardId }) {
unsubscribe({ state }, { topic, deviceHardId, callback }) {
if (!topic) {
return topic;
}
let { client } = state;
if (client) {
client.unsubscribe(topic);
client.unsubscribe(topic, callback);
}
if (state.dataSet[deviceHardId]) {
state.dataSet[deviceHardId] = undefined;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论