Commit d5bce441 by wangshufen

添加readme文件

parent 1b71f14e
登录系统:其他系统的入口 生产环境:http://ysplatform.atelligence-ai.com/#/login
测试服务器路径: /data/website/Login
北京服务器暂时没有部署
功能修改/新增:
1.首页UI调整 文档路径:F:\work\feature\login\UI图.png
......@@ -75,8 +75,11 @@ class HeaderBar extends React.Component {
{/* <Menu.Item>你好 - {isAuthenticated()}</Menu.Item>
<Menu.Item>个人信息</Menu.Item> */}
<Menu.Item>
<span onClick={this.logout}>退出登录</span>
<span style={{ cursor: 'pointer' }} onClick={this.logout}>
退出登录
</span>
</Menu.Item>
s
</Menu.ItemGroup>
{/* <Menu.ItemGroup title='设置中心' className='menu-group'>
<Menu.Item>个人设置</Menu.Item>
......@@ -98,7 +101,9 @@ class HeaderBar extends React.Component {
<div style={{ lineHeight: '64px', float: 'right' }}>
<ul className='header-ul'>
<li>
<span onClick={this.logout}>退出登录</span>
<span style={{ cursor: 'pointer' }} onClick={this.logout}>
退出登录
</span>
</li>
{/* <li><Icon type={icon} onClick={this.screenfullToggle}/></li> */}
{/* <li onClick={() => this.setState({count: 0})}>
......
......@@ -4,4 +4,5 @@
}
.Verification-code {
margin-left: 5px;
}
\ No newline at end of file
}
......@@ -83,13 +83,16 @@ export default class ProteinView extends Component {
window.localStorage.setItem('token', res.data.result.token);
let indexVOList = res.data.result.indexVOList;
console.log('indexVOList', indexVOList);
// indexVOList.push({ name: 'Kinase', url: 'http://localhost:3002/#/Kinase'});
indexVOList.push({ name: 'Kinase00', url: 'http://localhost:3000/#/Kinase', type: 2 });
// indexVOList.push({ name: 'GPCR', url: 'http://localhost:3001/#/home' });
// indexVOList.push({ name: 'Antigen2', url: 'http://localhost:3002/#/home' });
// indexVOList.push({ name: 'PLDM', url: 'http://localhost:3003/#/login' });
// indexVOList.push({ name: 'KG', url: 'http://localhost:3004/#/login' });
// indexVOList.push({ name: 'Computed', url: 'http://172.16.20.12:3002/#/home/Docking'});
indexVOList[0].state = true;
if (indexVOList && indexVOList.length > 0) {
indexVOList[0].state = true;
}
console.log(indexVOList);
this.props.appStore.toggleLogin(true, { username: 'hahah' });
const { from } = { from: { pathname: '/home', search: qs.stringify(indexVOList) } };
......
......@@ -22,6 +22,8 @@ function disableF12() {
// console.log('getQueryString', getQueryString('token'));
// console.log('localStorage', localStorage.getItem('token'));
const baseURL = 'http://69.235.144.91:8048/';
// const baseURL = 'http://61.177.38.58:8048/';
// const baseURL = 'http://172.16.20.9:8048/';
const token = getQueryString('token') || localStorage.getItem('token');
const request = axios.create({
baseURL,
......@@ -33,9 +35,14 @@ const request = axios.create({
},
});
// request.interceptors.request.use((config) => {
// return config;
// });
//拦截器
request.interceptors.request.use((config) => {
if (localStorage.getItem('token')) {
config.headers['accessToken'] = localStorage.getItem('token');
config.headers['token'] = localStorage.getItem('token');
}
return config;
});
// request.interceptors.response.use(
// (res) => {
// return res;
......
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