Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
a68abdd4
Commit
a68abdd4
authored
Mar 23, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@rbc/rbc-login): 已经登录的情况下直接回首页,不弹提示了
parent
70460e48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
index.vue
develop/@rbc/rbc-login/src/views/login/index.vue
+6
-8
No files found.
develop/@rbc/rbc-login/src/views/login/index.vue
View file @
a68abdd4
...
...
@@ -117,7 +117,6 @@ export default {
titleColor
:
'black'
,
Image
:
""
,
imgLoading
:
0
,
checkLogin
:
window
.
osConfig
.
isDevelop
?
false
:
true
,
// 默认当作已经登录了,因为已经登录的时候不能再进登录页
userData
:
{
username
:
""
,
password
:
""
,
...
...
@@ -163,12 +162,15 @@ export default {
mounted
()
{
if
(
!
window
.
osConfig
.
isDevelop
)
{
window
.
GMS
.
util
.
nvwa
.
checkLogin
().
then
(()
=>
{
this
.
checkLogin
=
true
this
.
$Message
.
error
(
'您已登录,请先注销'
)
const
url
=
new
URL
(
window
.
location
.
href
)
url
.
searchParams
.
delete
(
'nvwasys'
)
sessionStorage
.
clear
()
window
.
location
.
href
=
url
.
origin
return
}).
catch
(()
=>
{
this
.
checkLogin
=
false
})
}
document
.
addEventListener
(
'keyup'
,
this
.
onKeyUp
)
this
.
getVerificationCode
();
},
...
...
@@ -238,10 +240,6 @@ export default {
},
submit
()
{
if
(
this
.
checkLogin
)
{
this
.
$Message
.
error
(
'您已登录,请先注销'
)
return
}
this
.
$refs
[
"userData"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loginLoading
=
true
;
...
...
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