From f5ab4355538dcd6226da4e73544f93789a68887a Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:55:02 +0800 Subject: [PATCH] chore: .vscode/config.code-snippets --- .vscode/config.code-snippets | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .vscode/config.code-snippets diff --git a/.vscode/config.code-snippets b/.vscode/config.code-snippets new file mode 100644 index 0000000..2abbf4f --- /dev/null +++ b/.vscode/config.code-snippets @@ -0,0 +1,28 @@ +{ + "config": { + "prefix": "config", + "body": [ + "import { ModuleConfig } from '@cool-midway/core';", + "", + "/**", + " * 模块配置", + " */", + "export default () => {", + " return {", + " // 模块名称", + " name: 'xxx',", + " // 模块描述", + " description: 'xxx',", + " // 中间件,只对本模块有效", + " middlewares: [],", + " // 中间件,全局有效", + " globalMiddlewares: [],", + " // 模块加载顺序,默认为0,值越大越优先加载", + " order: 0,", + " } as ModuleConfig;", + "};", + "" + ], + "description": "cool-admin config代码片段" + } +}