mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2025-12-15 16:32:50 +00:00
自动识别实体是哪个链接源
This commit is contained in:
parent
61a25cc214
commit
fb32283ded
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/core",
|
||||
"version": "7.1.13",
|
||||
"version": "7.1.14",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"typings": "index.d.ts",
|
||||
|
||||
@ -81,6 +81,7 @@ export abstract class BaseController {
|
||||
if (entity) {
|
||||
const dataSourceName =
|
||||
this.typeORMDataSourceManager.getDataSourceNameByModel(entity);
|
||||
this.connectionName = dataSourceName;
|
||||
let entityModel = this.typeORMDataSourceManager
|
||||
.getDataSource(dataSourceName)
|
||||
.getRepository(entity);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/core",
|
||||
"version": "7.1.13",
|
||||
"version": "7.1.14",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user