Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
d286b496
Commit
d286b496
authored
Feb 14, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
472f3c05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
login.vue
src/pages/login.vue
+9
-9
No files found.
src/pages/login.vue
View file @
d286b496
...
@@ -129,7 +129,7 @@ export default {
...
@@ -129,7 +129,7 @@ export default {
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
loginPath
+
'appadmin'
let
url
=
process
.
env
.
loginPath
+
'appadmin'
let
param
=
{}
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'请稍等'
)
//
vm.hlsPopup.showLoading('请稍等')
let
res
=
await
vm
.
$post
(
url
,
param
)
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
// vm.hlsPopup.hideLoading()
if
(
res
)
{
if
(
res
)
{
...
@@ -140,15 +140,15 @@ export default {
...
@@ -140,15 +140,15 @@ export default {
async
access
()
{
async
access
()
{
document
.
getElementById
(
'passwordInput'
).
blur
()
document
.
getElementById
(
'passwordInput'
).
blur
()
document
.
activeElement
.
blur
()
document
.
activeElement
.
blur
()
let
flag
=
await
this
.
getAccessToken
()
let
vm
=
this
let
vm
=
this
if
(
flag
)
{
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
}
else
{
hlsPopup
.
showLoading
(
'正在登录'
)
hlsPopup
.
showLoading
(
'正在登录'
)
let
flag
=
await
this
.
getAccessToken
()
if
(
flag
)
{
vm
.
login
()
vm
.
login
()
}
}
}
}
...
...
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