Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
elegantDeepKinase
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
elegantDeepKinase
Commits
a05cccab
Commit
a05cccab
authored
Feb 07, 2023
by
wangshufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:修改路由控制
parent
01c80356
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 additions
and
4 deletions
+1
-4
src/components/HeaderBar/index.js
+0
-1
src/routes/Kinase/SearchDetails/index.js
+0
-1
src/routes/Kinase/TargetDetails/index.js
+0
-0
src/routes/Kinase/index.js
+0
-1
src/utils/request.js
+1
-0
src/utils/utils.js
+0
-1
No files found.
src/components/HeaderBar/index.js
View file @
a05cccab
...
@@ -37,7 +37,6 @@ class HeaderBar extends React.Component {
...
@@ -37,7 +37,6 @@ class HeaderBar extends React.Component {
}
}
logout
=
()
=>
{
logout
=
()
=>
{
this
.
props
.
appStore
.
toggleLogin
(
true
)
this
.
props
.
appStore
.
toggleLogin
(
true
)
// debugger
console
.
log
(
this
.
props
.
location
);
console
.
log
(
this
.
props
.
location
);
// this.props.history.push(this.props.location.pathname)
// this.props.history.push(this.props.location.pathname)
this
.
props
.
history
.
push
(
'/login'
)
this
.
props
.
history
.
push
(
'/login'
)
...
...
src/routes/Kinase/SearchDetails/index.js
View file @
a05cccab
...
@@ -176,7 +176,6 @@ export default class SearchDetails extends Component {
...
@@ -176,7 +176,6 @@ export default class SearchDetails extends Component {
listData
.
ligand
=
''
;
listData
.
ligand
=
''
;
listData
.
resolution
=
0
;
listData
.
resolution
=
0
;
this
.
setState
({
listData
});
this
.
setState
({
listData
});
// debugger;
let
pdbLink
=
'http://52.83.169.190:3004/?id='
+
JSON
.
stringify
(
listData
);
let
pdbLink
=
'http://52.83.169.190:3004/?id='
+
JSON
.
stringify
(
listData
);
this
.
setState
({
this
.
setState
({
pdbLink
,
pdbLink
,
...
...
src/routes/Kinase/TargetDetails/index.js
View file @
a05cccab
This diff is collapsed.
Click to expand it.
src/routes/Kinase/index.js
View file @
a05cccab
...
@@ -375,7 +375,6 @@ class Home extends React.Component {
...
@@ -375,7 +375,6 @@ class Home extends React.Component {
//首页启动调用接口 先checkToken == localStorage.getItem('token')
//首页启动调用接口 先checkToken == localStorage.getItem('token')
getTargetSelectList
=
()
=>
{
getTargetSelectList
=
()
=>
{
// debugger
localStorage
.
getItem
(
'token'
)
&&
localStorage
.
getItem
(
'token'
)
&&
request
request
.
get
(
'/kinase/target_class/target'
)
.
get
(
'/kinase/target_class/target'
)
...
...
src/utils/request.js
View file @
a05cccab
...
@@ -71,6 +71,7 @@ request.interceptors.request.use((config) => {
...
@@ -71,6 +71,7 @@ request.interceptors.request.use((config) => {
checkToken
(
config
);
checkToken
(
config
);
}
else
{
}
else
{
console
.
log
(
'token为空....'
);
console
.
log
(
'token为空....'
);
localStorage
.
removeItem
(
'token'
);
window
.
open
(
'http://69.235.144.91:3048/#/login'
,
'_self'
);
window
.
open
(
'http://69.235.144.91:3048/#/login'
,
'_self'
);
}
}
});
});
...
...
src/utils/utils.js
View file @
a05cccab
...
@@ -68,7 +68,6 @@ export function preloadingImages(arr) {
...
@@ -68,7 +68,6 @@ export function preloadingImages(arr) {
/**
/**
* 获取URL中指定的参数
* 获取URL中指定的参数
*/
*/
export
function
getQueryString
(
name
)
{
export
function
getQueryString
(
name
)
{
let
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
);
let
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
);
let
r
=
window
.
location
.
hash
.
split
(
'?'
)[
1
]
&&
window
.
location
.
hash
.
split
(
'?'
)[
1
].
match
(
reg
);
//获取url中"?"符后的字符串并正则匹配
let
r
=
window
.
location
.
hash
.
split
(
'?'
)[
1
]
&&
window
.
location
.
hash
.
split
(
'?'
)[
1
].
match
(
reg
);
//获取url中"?"符后的字符串并正则匹配
...
...
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