Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-site
Commits
7cf3a74a
Commit
7cf3a74a
authored
Sep 24, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token
parent
061babff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
header.vue
components/header.vue
+6
-5
homeinput.vue
components/homeinput.vue
+1
-1
No files found.
components/header.vue
View file @
7cf3a74a
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
},
},
mounted
(){
mounted
(){
let
tokenStr
=
window
.
sessionStorage
.
getItem
(
"token"
)
let
tokenStr
=
sessionStorage
.
getItem
(
"token"
)
if
(
tokenStr
){
if
(
tokenStr
){
this
.
showDefault
=
false
this
.
showDefault
=
false
this
.
userName
=
window
.
sessionStorage
.
getItem
(
"companyName"
)
this
.
userName
=
sessionStorage
.
getItem
(
"companyName"
)
}
}
},
},
data
()
{
data
()
{
...
@@ -54,12 +54,13 @@
...
@@ -54,12 +54,13 @@
jump
(){
jump
(){
let
token
=
sessionStorage
.
getItem
(
"token"
)
let
token
=
sessionStorage
.
getItem
(
"token"
)
if
(
token
){
if
(
token
){
window
.
location
.
href
=
"http://192.168.200.201:8082/#/purchaser/Home"
/* window.location.href="http://192.168.200.201:8082/#/purchaser/Home" */
window
.
location
.
href
=
`http://192.168.200.201:8082/#/purchaser/Home?token=
${
token
}
`
}
}
/
/ window.location.href=`http://localhost:8080/purchaser/Home?token=${token}`
/
* window.location.href=`http://192.168.200.201:8082/#/purchaser/Home?token=${token}` */
},
},
getUserName
(){
getUserName
(){
return
window
.
sessionStorage
.
getItem
(
"companyName"
);
return
sessionStorage
.
getItem
(
"companyName"
);
}
}
},
},
...
...
components/homeinput.vue
View file @
7cf3a74a
...
@@ -22,7 +22,7 @@ import {getAllList} from '@/common/list.js'
...
@@ -22,7 +22,7 @@ import {getAllList} from '@/common/list.js'
methods
:{
methods
:{
async
toSearch
(){
async
toSearch
(){
this
.
$router
.
push
(
'notice/all'
)
this
.
$router
.
push
(
'notice/all'
)
window
.
sessionStorage
.
setItem
(
"content"
,
this
.
input
)
sessionStorage
.
setItem
(
"content"
,
this
.
input
)
}
}
},
},
data
()
{
data
()
{
...
...
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