辽宁统一认证登录

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 //辽宁嵌入登录获取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: ''
}) })
} }

View File

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