Skip to content

Commit

Permalink
fix: 去掉无用信息 (TencentBlueKing#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
brookylin authored Oct 13, 2023
1 parent c7b9af7 commit cf327c3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 45 deletions.
4 changes: 2 additions & 2 deletions src/bk-login/pages/.bk.development.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ BK_PAAS_APP_ID = ''
BK_PAAS_APP_SECRET = ''

# 登录地址
BK_LOGIN_URL = 'http://login.o.oa.com'
BK_LOGIN_URL = ''

# 开发 host
BK_APP_HOST = 'localhost.woa.com'
BK_APP_HOST = ''

# 开发 port
BK_APP_PORT = 5002
1 change: 0 additions & 1 deletion src/bk-login/pages/mock-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ module.exports = (middlewares, devServer) => {
devServer.app.use(require('cookie-parser')());
/** mock 接口 */
require('../paas-server/api/table')(devServer.app);
devServer.app.use(require('../paas-server/middleware/user'));
return middlewares;
};
2 changes: 0 additions & 2 deletions src/bk-login/pages/paas-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const path = require('path');
const artTemplate = require('express-art-template');
const cookieParser = require('cookie-parser');
const history = require('connect-history-api-fallback');
const user = require('./middleware/user');

const mockTable = require('./api/table');

Expand All @@ -22,7 +21,6 @@ const PORT = process.env.PORT || 5000;
mockTable(app);

app.use(cookieParser());
app.use(user);

// 注入全局变量
const GLOBAL_VAR = {
Expand Down
40 changes: 0 additions & 40 deletions src/bk-login/pages/paas-server/middleware/user.js

This file was deleted.

0 comments on commit cf327c3

Please sign in to comment.