Skip to content

A full-featured download manager.

fix: Function overload error, unable to trigger events bound in EngineClient.vue(函数重载错误, 无法触发在 EngineClient.vue 中绑定的事件)

upuppz04d68e293be2
diff --git a/src/shared/aria2/lib/JSONRPCClient.js b/src/shared/aria2/lib/JSONRPCClient.js
index ceff6837..4617cdef 100644
--- a/src/shared/aria2/lib/JSONRPCClient.js
+++ b/src/shared/aria2/lib/JSONRPCClient.js
@@ -125,7 +125,7 @@ export class JSONRPCClient extends EventEmitter {
return this.onrequest(method, params)
}
- _onnotification = ({ method, params }) => {
+ _onnotification ({ method, params }) {
this.emit(method, params)
}