chore: .vscode/config.code-snippets
This commit is contained in:
Vendored
+28
@@ -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代码片段"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user