mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +00:00
fix(#92): 无法查看面板
This commit is contained in:
parent
b6d0bb165a
commit
6a859a8dca
1 changed files with 6 additions and 3 deletions
|
|
@ -32,8 +32,10 @@ export class Panel extends ZZZPlugin {
|
||||||
fnc: 'getCharOriImage',
|
fnc: 'getCharOriImage',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
handler: [{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' }],
|
handler: [
|
||||||
handler: [{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' }],
|
{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' },
|
||||||
|
{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' },
|
||||||
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async handleRule() {
|
async handleRule() {
|
||||||
|
|
@ -124,7 +126,8 @@ export class Panel extends ZZZPlugin {
|
||||||
await this.reply(`未找到角色${name}的面板信息,请先刷新面板`);
|
await this.reply(`未找到角色${name}的面板信息,请先刷新面板`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let handler = this.e.runtime?.handler || {};
|
let handler = this.e.runtime.handler || {};
|
||||||
|
|
||||||
if (handler.has('zzz.tool.panel')) {
|
if (handler.has('zzz.tool.panel')) {
|
||||||
await handler.call('zzz.tool.panel', this.e, {
|
await handler.call('zzz.tool.panel', this.e, {
|
||||||
uid,
|
uid,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue