Commit 010af9be6e8d8140e254a6ed5ad1de3a1e4bbcb3
1 parent
124debbe
修复消息打开BUG
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
1 additions
and
1 deletions
ant-design-vue-jeecg/src/components/tools/HeaderNotice.vue
... | ... | @@ -242,8 +242,8 @@ export default { |
242 | 242 | websocketOnmessage: function (e) { |
243 | 243 | console.log("-----接收消息-------", e.data); |
244 | 244 | var data = eval("(" + e.data + ")"); //解析对象 |
245 | - this.openNotification(data) | |
246 | 245 | if (data.cmd == "topic") { |
246 | + this.openNotification(data) | |
247 | 247 | //系统通知 |
248 | 248 | this.loadData(); |
249 | 249 | } else if (data.cmd == "user") { |
... | ... |