Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
汪晓凯
robot-monitor
Commits
ec50e61c
Commit
ec50e61c
authored
Jul 04, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录状态改为sessionStroge存储
parent
fe6ad0aa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
preHeader.vue
src/components/preHeader.vue
+1
-1
Login.vue
src/views/Login.vue
+1
-1
container.vue
src/views/container.vue
+1
-1
overview.vue
src/views/overview.vue
+1
-1
No files found.
src/components/preHeader.vue
View file @
ec50e61c
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/'
path
:
'/'
});
});
localStorage
[
"isLogin"
]
=
false
;
sessionStorage
.
removeItem
(
"isLogin"
)
;
this
.
$notify
({
this
.
$notify
({
title
:
'提示'
,
title
:
'提示'
,
message
:
"退出成功"
,
message
:
"退出成功"
,
...
...
src/views/Login.vue
View file @
ec50e61c
...
@@ -321,7 +321,7 @@ export default {
...
@@ -321,7 +321,7 @@ export default {
this
.
doAfterlogin
(
res
);
this
.
doAfterlogin
(
res
);
localStorage
[
"username"
]
=
this
.
loginBody
.
email
;
localStorage
[
"username"
]
=
this
.
loginBody
.
email
;
localStorage
[
"isLogin"
]
=
true
;
sessionStorage
.
setItem
(
"isLogin"
,
true
)
;
}
else
{
}
else
{
this
.
$notify
({
this
.
$notify
({
title
:
'提示'
,
title
:
'提示'
,
...
...
src/views/container.vue
View file @
ec50e61c
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
},
},
created
()
{
created
()
{
this
.
getPlatInfo
();
this
.
getPlatInfo
();
if
(
localStorage
.
getItem
(
"isLogin"
)
===
'false'
)
{
if
(
!
sessionStorage
.
getItem
(
"isLogin"
)
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/'
path
:
'/'
});
});
...
...
src/views/overview.vue
View file @
ec50e61c
...
@@ -359,7 +359,7 @@
...
@@ -359,7 +359,7 @@
showDetails
(
index
)
{
showDetails
(
index
)
{
this
.
robotDetails
=
true
;
this
.
robotDetails
=
true
;
this
.
robotDetailInfo
=
this
.
robotList
[
index
];
this
.
robotDetailInfo
=
this
.
robotList
[
index
];
console
.
log
(
this
.
robotDetailInfo
)
//
console.log(this.robotDetailInfo)
},
},
clickSwitch
(
val
)
{
clickSwitch
(
val
)
{
const
Tips
=
val
?
'此操作将开启机器人, 是否继续?'
:
'此操作将关闭机器人, 是否继续?'
;
const
Tips
=
val
?
'此操作将开启机器人, 是否继续?'
:
'此操作将关闭机器人, 是否继续?'
;
...
...
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