fix undefined callback

This commit is contained in:
LouisLam 2021-10-01 15:47:51 +08:00
parent 8d5eaaf8a7
commit 3394e1f148

View file

@ -293,6 +293,9 @@ export default {
}, },
getMonitorList(callback) { getMonitorList(callback) {
if (! callback) {
callback = () => { };
}
socket.emit("getMonitorList", callback); socket.emit("getMonitorList", callback);
}, },