Closed Ganshixiong closed 8 months ago
src/config/config.local.ts 错误信息
把eps关闭或者只使用一个数据源的时候不会出现路由重复定义错误
baseCommController类代码如下:(下载下来的示例代码,为进行更改) import { Provide, Inject, Get, Post, Body, ALL } from '@midwayjs/decorator'; import { CoolController, BaseController } from '@cool-midway/core'; import { BaseSysUserEntity } from '../../entity/sys/user'; import { BaseSysLoginService } from '../../service/sys/login'; import { BaseSysPermsService } from '../../service/sys/perms'; import { BaseSysUserService } from '../../service/sys/user'; import { Context } from '@midwayjs/koa'; import { PluginService } from '../../../plugin/service/info';
/**
Base 通用接口 一般写不需要权限过滤的接口 */ @Provide() @CoolController() export class BaseCommController extends BaseController { @Inject() baseSysUserService: BaseSysUserService;
@Inject() baseSysPermsService: BaseSysPermsService;
@Inject() baseSysLoginService: BaseSysLoginService;
@Inject() ctx: Context;
@Inject() pluginService: PluginService;
@cool-midway\core\rest\eps.js 多配置时,当前方法调用与midway框架本身初始化存在异步问题 eps.js里面调用getFlattenRouterTable方法还为设置到isReady属性时,midway框架本身也已经执行到该步骤了,导致2次analyze
已修复更新 "@cool-midway/core": "^7.1.10"
src/config/config.local.ts 错误信息
把eps关闭或者只使用一个数据源的时候不会出现路由重复定义错误
baseCommController类代码如下:(下载下来的示例代码,为进行更改) import { Provide, Inject, Get, Post, Body, ALL } from '@midwayjs/decorator'; import { CoolController, BaseController } from '@cool-midway/core'; import { BaseSysUserEntity } from '../../entity/sys/user'; import { BaseSysLoginService } from '../../service/sys/login'; import { BaseSysPermsService } from '../../service/sys/perms'; import { BaseSysUserService } from '../../service/sys/user'; import { Context } from '@midwayjs/koa'; import { PluginService } from '../../../plugin/service/info';
/**
Base 通用接口 一般写不需要权限过滤的接口 */ @Provide() @CoolController() export class BaseCommController extends BaseController { @Inject() baseSysUserService: BaseSysUserService;
@Inject() baseSysPermsService: BaseSysPermsService;
@Inject() baseSysLoginService: BaseSysLoginService;
@Inject() ctx: Context;
@Inject() pluginService: PluginService;
/**
/**
/**
/**
/**
/**