fix: 优化解析
This commit is contained in:
parent
068b0e60b7
commit
0602eb0041
|
@ -68,7 +68,6 @@ class ListenerLoader {
|
|||
this.init(await import('./events/offline.js'), './events/offline.js')
|
||||
this.init(await import('./events/online.js'), './events/online.js')
|
||||
this.init(await import('./events/request.js'), './events/request.js')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,8 @@ export class plugin {
|
|||
priority && (this.priority = priority)
|
||||
|
||||
/** 定时任务,可以是数组 */
|
||||
task && (this.task = {
|
||||
task &&
|
||||
(this.task = {
|
||||
/** 任务名 */
|
||||
name: task?.name ?? '',
|
||||
/** 任务方法名 */
|
||||
|
|
Loading…
Reference in New Issue