Commit 8a66dc59 authored by linxin's avatar linxin

Merge branch 'liuin' into uat

parents 8d52c830 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()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment