Skip to content

Commit eadca09

Browse files
committed
enhance: optimize demo
1 parent cb53290 commit eadca09

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ export default class ExamplePluginSimple implements PluginInterface {
5656
ctx.api.sendText(`${selected} — Hello World!`);
5757
} else {
5858
// 否则直接输出
59-
ctx.api.sendText('Hello World!');
59+
// ctx.api.sendText('Hello World!');
60+
61+
// 否则显示面板
62+
ctx.api.hidePanel(['menu'])
63+
ctx.api.showPanel(['example-plugin-simple-panel'])
6064
}
6165

6266
ctx.api.notify('Hello World plugin executed ✅');

0 commit comments

Comments
 (0)