【fix ESLint】src/components/tools/HeaderNotice.vue
This commit is contained in:
@@ -217,6 +217,7 @@ export default {
|
|||||||
},
|
},
|
||||||
websocketOnmessage: function (e) {
|
websocketOnmessage: function (e) {
|
||||||
console.log('-----接收消息-------', e.data)
|
console.log('-----接收消息-------', e.data)
|
||||||
|
// eslint-disable-next-line no-eval
|
||||||
const data = eval('(' + e.data + ')') // 解析对象
|
const data = eval('(' + e.data + ')') // 解析对象
|
||||||
if (data.cmd + '' === 'topic') {
|
if (data.cmd + '' === 'topic') {
|
||||||
// 系统通知
|
// 系统通知
|
||||||
|
|||||||
Reference in New Issue
Block a user