辽宁统一认证登录
This commit is contained in:
@@ -46,9 +46,8 @@ export async function login(params: any) {
|
||||
//辽宁嵌入登录获取token
|
||||
export async function loginLNqr() {
|
||||
return request({
|
||||
url: '/LNapi/pqs-auth/oauth/lnLogin',
|
||||
url: '/pqs-auth/oauth/lnLogin',
|
||||
method: 'get',
|
||||
baseURL: ''
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -189,20 +189,23 @@ const LNonSubmit = async () => {
|
||||
state.submitLoading = true
|
||||
loginLNqr()
|
||||
.then(res => {
|
||||
form.username = res.data.username
|
||||
form.password = res.data.password
|
||||
onSubmit(formRef.value)
|
||||
// userInfo.dataFill(res.data)
|
||||
// state.submitLoading = false
|
||||
// getSysConfig().then(res => {
|
||||
// window.localStorage.setItem('sysdata', JSON.stringify(res.data))
|
||||
// })
|
||||
// router.push({
|
||||
// path: '/'
|
||||
// })
|
||||
//返回 a
|
||||
|
||||
//拿到token了,可以正常操作页面
|
||||
userInfo.dataFill(res.data)
|
||||
state.submitLoading = false
|
||||
getSysConfig().then(res => {
|
||||
window.localStorage.setItem('sysdata', JSON.stringify(res.data))
|
||||
})
|
||||
router.push({
|
||||
path: '/'
|
||||
})
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
//
|
||||
window.open("http://privilege-epri.dcloud.ln.dc.sgcc.com.cn/cas/login")
|
||||
})
|
||||
setTimeout(() => {
|
||||
state.submitLoading = false
|
||||
|
||||
Reference in New Issue
Block a user