Skip to content

Commit

Permalink
fix: 文档部署
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Mar 13, 2024
1 parent 8e3dd45 commit 05a1ed4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfigWithTheme({
title: '知音(Zhin)',
titleTemplate: ':title - 知音(Zhin)',
head: [['meta', {name: 'theme-color', content: '#3c8772'}]],
srcDir: './node',
srcDir: './src',
outDir: './dist',
description: '轻量、优雅的开发机器人',
lang: 'zh-CN',
Expand Down
10 changes: 7 additions & 3 deletions test/plugins/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test.mounted(() => {
test.component({
name: 'test2',
render(_, context) {
return `<slot/>,我在这儿`;
return `<slot/>,一天天的就知道钓鱼,该上学上学,该上班上班`;
},
});
test.component({
Expand All @@ -60,9 +60,13 @@ test.mounted(() => {
},
},
render(props, context) {
return `hello!${context.who}`;
return `不务正业!${context.who}`;
},
});
});
test.command('钓鱼').action(() => '一天天的就知道钓鱼,该上学上学,该上班上班');
test
.command('钓鱼')
.alias('🎣')
.sugar(/^.()|(🎣)$/)
.action(({ message }) => `<test2><test who="${message.sender.user_id}"/></test2>`);
export default test;

0 comments on commit 05a1ed4

Please sign in to comment.