Commit 8e3c30fd authored by 成旭东's avatar 成旭东

fix

parent 69491357
Pipeline #27926 failed with stage
in 2 minutes 23 seconds
......@@ -33,14 +33,14 @@ export default (appInfo: { name: string; }) => {
config.middleware = [
'errorHandler',
'pagination',
'jwtMiddle',
// 'jwtMiddle',
];
config.jwtMiddle = {
exclude: [
'/api/login',
],
};
// config.jwtMiddle = {
// exclude: [
// '/api/login',
// ],
// };
config.jwt = {
secret: '123456',
......
......@@ -18,10 +18,8 @@ export default () => {
config.jwt = {
secret: '51e69bd6-7fdb-4a76-ac83-0d32b6f09723',
exp: Math.floor(Date.now() / 1000) + config.sessionExpireIn, // 一周
enable: true, // default is false
credentialsRequired: false,
match: '*', // optional
ignore: ['/api/login'],
};
config.sequelize = {
......
......@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import 'egg';
import ExtendApplication from '../../../app/extend/application';
import ExtendApplication = require('../../../app/extend/application');
type ExtendApplicationType = typeof ExtendApplication;
declare module 'egg' {
interface Application extends ExtendApplicationType { }
......
......@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import 'egg';
import ExtendContext from '../../../app/extend/context';
import ExtendContext = require('../../../app/extend/context');
type ExtendContextType = typeof ExtendContext;
declare module 'egg' {
interface Context extends ExtendContextType { }
......
......@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import 'egg';
import ExtendIHelper from '../../../app/extend/helper';
import ExtendIHelper = require('../../../app/extend/helper');
type ExtendIHelperType = typeof ExtendIHelper;
declare module 'egg' {
interface IHelper extends ExtendIHelperType { }
......
......@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import 'egg';
import ExtendRequest from '../../../app/extend/request';
import ExtendRequest = require('../../../app/extend/request');
type ExtendRequestType = typeof ExtendRequest;
declare module 'egg' {
interface Request extends ExtendRequestType { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment