You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
713 B
28 lines
713 B
{
|
|
"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代码片段"
|
|
}
|
|
}
|
|
|