This commit is contained in:
xd 2024-04-25 16:39:40 +08:00
parent 1a10f18a5d
commit 2d5c98399e
2 changed files with 7 additions and 4 deletions

View File

@ -175,12 +175,14 @@
websocketOnmessage: function(e) { websocketOnmessage: function(e) {
console.log('-----接收消息-------', e.data) console.log('-----接收消息-------', e.data)
this.getList(); this.getList();
Notification({ this.$notify({
title: '消息', title: '消息',
duration: 3000, type: 'warning',
message: '这是一条警告的提示消息',
duration: 2000,
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
message: JSON.parse(e.data).noticeTitle message: JSON.parse(e.data).noticeTitle
}) });
}, },
websocketOnclose: function(e) { websocketOnclose: function(e) {
console.log('connection closed (' + e + ')') console.log('connection closed (' + e + ')')

View File

@ -32,8 +32,9 @@
this.peopleOpen=true; this.peopleOpen=true;
}, },
// submitPeople(nikeNamelist) submitPeople(peopleList,nikeNamelist) // submitPeople(nikeNamelist) submitPeople(peopleList,nikeNamelist)
submitPeople(peopleList){ submitPeople(peopleList,nickNameList){
console.log(peopleList); console.log(peopleList);
console.log(nickNameList);
this.peopleOpen=false; this.peopleOpen=false;
}, },
} }