Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
submit() {
Message.success('验证通过,开始提交');
console.log(this.model);
},
async handleSubmit() {
onAdd() {
const users = this.checkedUsers;
const room = this.checkedRooms[0];
if (users.length > 2) {
return Message.error('当前房间最多容纳两人');
}
users.forEach(user => {
user.room = room;
room.users.push(user);
});
this.checkedUsers = [];
this.checkedRooms = [];
},
onRemove() {
onCancel() {
Message.error('You clicked cancel button.');
},
},
_showError(e) {
Message.error(e.message);
},
},
_onError(err) {
Message.error(err.message);
},
},
_showErrorTip(c, value) {
Message.error('Please enter digits.');
},
_onChange(c, newValue, oldValue) {
showMessage2() {
Message.info('stick message', 0);
},
},
cancel() {
Message.info('Clicked cancel!');
},
},
showMessage1() {
Message.info('close after 10s', 10000);
},
showMessage2() {
_fetch2({current, limit}) {
Message.info(`current page: ${current}, limit: ${limit}`);
},
},