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
8a66dc59
Commit
8a66dc59
authored
Feb 14, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuin' into uat
parents
8d52c830
d286b496
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 @
8a66dc59
...
...
@@ -129,7 +129,7 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
loginPath
+
'appadmin'
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'请稍等'
)
//
vm.hlsPopup.showLoading('请稍等')
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
if
(
res
)
{
...
...
@@ -140,15 +140,15 @@ export default {
async
access
()
{
document
.
getElementById
(
'passwordInput'
).
blur
()
document
.
activeElement
.
blur
()
let
flag
=
await
this
.
getAccessToken
()
let
vm
=
this
if
(
flag
)
{
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
hlsPopup
.
showLoading
(
'正在登录'
)
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
hlsPopup
.
showLoading
(
'正在登录'
)
let
flag
=
await
this
.
getAccessToken
()
if
(
flag
)
{
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