fix(#92): 无法查看面板

This commit is contained in:
bietiaop 2025-03-03 11:32:12 +08:00
parent b6d0bb165a
commit 6a859a8dca

View file

@ -32,8 +32,10 @@ export class Panel extends ZZZPlugin {
fnc: 'getCharOriImage',
},
],
handler: [{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' }],
handler: [{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' }],
handler: [
{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' },
{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' },
],
});
}
async handleRule() {
@ -124,7 +126,8 @@ export class Panel extends ZZZPlugin {
await this.reply(`未找到角色${name}的面板信息,请先刷新面板`);
return;
}
let handler = this.e.runtime?.handler || {};
let handler = this.e.runtime.handler || {};
if (handler.has('zzz.tool.panel')) {
await handler.call('zzz.tool.panel', this.e, {
uid,