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
05264b4a
Commit
05264b4a
authored
Mar 22, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@rbc/rbc-login): 增加调试选项,允许重复登录
parent
85b80a7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
index.vue
develop/@rbc/rbc-login/src/views/login/index.vue
+9
-7
No files found.
develop/@rbc/rbc-login/src/views/login/index.vue
View file @
05264b4a
...
...
@@ -117,7 +117,7 @@ export default {
titleColor
:
'black'
,
Image
:
""
,
imgLoading
:
0
,
checkLogin
:
true
,
// 默认当作已经登录了,因为已经登录的时候不能再进登录页
checkLogin
:
window
.
osConfig
.
isDevelop
?
false
:
true
,
// 默认当作已经登录了,因为已经登录的时候不能再进登录页
userData
:
{
username
:
""
,
password
:
""
,
...
...
@@ -161,12 +161,14 @@ export default {
this
.
getLoginAssetsInfo
();
},
mounted
()
{
window
.
GMS
.
util
.
nvwa
.
checkLogin
().
then
(()
=>
{
this
.
checkLogin
=
true
this
.
$Message
.
error
(
'您已登录,请先注销'
)
}).
catch
(()
=>
{
this
.
checkLogin
=
false
})
if
(
!
window
.
osConfig
.
isDevelop
)
{
window
.
GMS
.
util
.
nvwa
.
checkLogin
().
then
(()
=>
{
this
.
checkLogin
=
true
this
.
$Message
.
error
(
'您已登录,请先注销'
)
}).
catch
(()
=>
{
this
.
checkLogin
=
false
})
}
document
.
addEventListener
(
'keyup'
,
this
.
onKeyUp
)
this
.
getVerificationCode
();
},
...
...
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