去除无用代码

This commit is contained in:
ap 2021-03-08 00:47:40 +08:00
parent 8fe9fac4be
commit 7304fbf296

View File

@ -14,22 +14,5 @@ import { BaseSysMenuEntity } from '../../../base/entity/sys/menu';
entity: DemoAppGoodsEntity,
})
export class DemoAppGoodsController extends BaseController {
@InjectEntityModel(BaseSysMenuEntity)
baseSysMenuEntity: Repository<BaseSysMenuEntity>;
@Get('/123')
async 123() {
const ms = await this.baseSysMenuEntity.find();
for (const item of ms) {
if (item.perms) {
let a = item.perms.split(',');
a = a.map(e => {
return 'base:' + e;
});
item.perms = a.join(',');
this.baseSysMenuEntity.update(item.id, item);
}
}
return this.ok(122);
}
}