辽宁统一认证登录

This commit is contained in:
cdf
2026-06-03 15:54:15 +08:00
parent fae2a7d735
commit 1652b5faf8
2 changed files with 15 additions and 13 deletions

View File

@@ -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: ''
})
}

View File

@@ -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