From 3394e1f148efc1c3280a4cea78fafce02a553ac4 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Fri, 1 Oct 2021 15:47:51 +0800 Subject: [PATCH] fix undefined callback --- src/mixins/socket.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 3ff4ddcd2..a14771c36 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -293,6 +293,9 @@ export default { }, getMonitorList(callback) { + if (! callback) { + callback = () => { }; + } socket.emit("getMonitorList", callback); },