Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LoginSystem
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangshufen
LoginSystem
Commits
d5bce441
Commit
d5bce441
authored
Feb 27, 2023
by
wangshufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加readme文件
parent
1b71f14e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
6 deletions
+47
-6
README.md
+25
-0
src/components/HeaderBar/index.js
+7
-2
src/routes/Login/AccountLogin.css
+1
-0
src/routes/Login/AccountLogin.js
+4
-1
src/utils/request.js
+10
-3
No files found.
README.md
View file @
d5bce441
登录系统:其他系统的入口 生产环境:http://ysplatform.atelligence-ai.com/#/login
测试服务器路径: /data/website/Login
北京服务器暂时没有部署
功能修改/新增:
1.
首页UI调整 文档路径:F:
\w
ork
\f
eature
\l
ogin
\U
I图.png
src/components/HeaderBar/index.js
View file @
d5bce441
...
@@ -75,8 +75,11 @@ class HeaderBar extends React.Component {
...
@@ -75,8 +75,11 @@ class HeaderBar extends React.Component {
{
/* <Menu.Item>你好 - {isAuthenticated()}</Menu.Item>
{
/* <Menu.Item>你好 - {isAuthenticated()}</Menu.Item>
<Menu.Item>个人信息</Menu.Item> */
}
<Menu.Item>个人信息</Menu.Item> */
}
<
Menu
.
Item
>
<
Menu
.
Item
>
<
span
onClick
=
{
this
.
logout
}
>
退出登录
<
/span
>
<
span
style
=
{{
cursor
:
'pointer'
}}
onClick
=
{
this
.
logout
}
>
退出登录
<
/span
>
<
/Menu.Item
>
<
/Menu.Item
>
s
<
/Menu.ItemGroup
>
<
/Menu.ItemGroup
>
{
/* <Menu.ItemGroup title='设置中心' className='menu-group'>
{
/* <Menu.ItemGroup title='设置中心' className='menu-group'>
<Menu.Item>个人设置</Menu.Item>
<Menu.Item>个人设置</Menu.Item>
...
@@ -98,7 +101,9 @@ class HeaderBar extends React.Component {
...
@@ -98,7 +101,9 @@ class HeaderBar extends React.Component {
<
div
style
=
{{
lineHeight
:
'64px'
,
float
:
'right'
}}
>
<
div
style
=
{{
lineHeight
:
'64px'
,
float
:
'right'
}}
>
<
ul
className
=
'header-ul'
>
<
ul
className
=
'header-ul'
>
<
li
>
<
li
>
<
span
onClick
=
{
this
.
logout
}
>
退出登录
<
/span
>
<
span
style
=
{{
cursor
:
'pointer'
}}
onClick
=
{
this
.
logout
}
>
退出登录
<
/span
>
<
/li
>
<
/li
>
{
/* <li><Icon type={icon} onClick={this.screenfullToggle}/></li> */
}
{
/* <li><Icon type={icon} onClick={this.screenfullToggle}/></li> */
}
{
/* <li onClick={() => this.setState({count: 0})}>
{
/* <li onClick={() => this.setState({count: 0})}>
...
...
src/routes/Login/AccountLogin.css
View file @
d5bce441
...
@@ -4,4 +4,5 @@
...
@@ -4,4 +4,5 @@
}
}
.Verification-code
{
.Verification-code
{
margin-left
:
5px
;
margin-left
:
5px
;
}
}
src/routes/Login/AccountLogin.js
View file @
d5bce441
...
@@ -83,13 +83,16 @@ export default class ProteinView extends Component {
...
@@ -83,13 +83,16 @@ export default class ProteinView extends Component {
window
.
localStorage
.
setItem
(
'token'
,
res
.
data
.
result
.
token
);
window
.
localStorage
.
setItem
(
'token'
,
res
.
data
.
result
.
token
);
let
indexVOList
=
res
.
data
.
result
.
indexVOList
;
let
indexVOList
=
res
.
data
.
result
.
indexVOList
;
console
.
log
(
'indexVOList'
,
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: 'GPCR', url: 'http://localhost:3001/#/home' });
// indexVOList.push({ name: 'Antigen2', url: 'http://localhost:3002/#/home' });
// indexVOList.push({ name: 'Antigen2', url: 'http://localhost:3002/#/home' });
// indexVOList.push({ name: 'PLDM', url: 'http://localhost:3003/#/login' });
// indexVOList.push({ name: 'PLDM', url: 'http://localhost:3003/#/login' });
// indexVOList.push({ name: 'KG', url: 'http://localhost:3004/#/login' });
// indexVOList.push({ name: 'KG', url: 'http://localhost:3004/#/login' });
// indexVOList.push({ name: 'Computed', url: 'http://172.16.20.12:3002/#/home/Docking'});
// indexVOList.push({ name: 'Computed', url: 'http://172.16.20.12:3002/#/home/Docking'});
if
(
indexVOList
&&
indexVOList
.
length
>
0
)
{
indexVOList
[
0
].
state
=
true
;
indexVOList
[
0
].
state
=
true
;
}
console
.
log
(
indexVOList
);
console
.
log
(
indexVOList
);
this
.
props
.
appStore
.
toggleLogin
(
true
,
{
username
:
'hahah'
});
this
.
props
.
appStore
.
toggleLogin
(
true
,
{
username
:
'hahah'
});
const
{
from
}
=
{
from
:
{
pathname
:
'/home'
,
search
:
qs
.
stringify
(
indexVOList
)
}
};
const
{
from
}
=
{
from
:
{
pathname
:
'/home'
,
search
:
qs
.
stringify
(
indexVOList
)
}
};
...
...
src/utils/request.js
View file @
d5bce441
...
@@ -22,6 +22,8 @@ function disableF12() {
...
@@ -22,6 +22,8 @@ function disableF12() {
// console.log('getQueryString', getQueryString('token'));
// console.log('getQueryString', getQueryString('token'));
// console.log('localStorage', localStorage.getItem('token'));
// console.log('localStorage', localStorage.getItem('token'));
const
baseURL
=
'http://69.235.144.91:8048/'
;
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
token
=
getQueryString
(
'token'
)
||
localStorage
.
getItem
(
'token'
);
const
request
=
axios
.
create
({
const
request
=
axios
.
create
({
baseURL
,
baseURL
,
...
@@ -33,9 +35,14 @@ const request = axios.create({
...
@@ -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(
// request.interceptors.response.use(
// (res) => {
// (res) => {
// return res;
// return res;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment