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