fix: 删除打印
This commit is contained in:
parent
6472e0caf0
commit
b790a79f98
|
@ -340,8 +340,6 @@ class PluginsLoader {
|
|||
*
|
||||
*/
|
||||
for (const plugin of priority) {
|
||||
console.log('plugin', plugin.add)
|
||||
|
||||
/**
|
||||
* 上下文hook
|
||||
*/
|
||||
|
@ -354,7 +352,7 @@ class PluginsLoader {
|
|||
let ret
|
||||
for (const fnc in context) {
|
||||
// 不是函数,错误插件错误写法
|
||||
if (!plugin[fnc]) {
|
||||
if (typeof plugin[fnc] !== 'function') {
|
||||
continue
|
||||
}
|
||||
ret ||= await plugin[fnc](context[fnc])
|
||||
|
@ -416,7 +414,7 @@ class PluginsLoader {
|
|||
try {
|
||||
const start = Date.now()
|
||||
// 不是函数。
|
||||
if (!plugin[v.fnc]) {
|
||||
if (typeof plugin[v.fnc] !== 'function') {
|
||||
continue
|
||||
}
|
||||
const res = await plugin[v.fnc](e)
|
||||
|
|
Loading…
Reference in New Issue