更新
This commit is contained in:
@ -140,14 +140,13 @@ const handleLogin = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const getSfzhByGsid = (sfzh) => {
|
const getSfzhByGsid = (sfzh) => {
|
||||||
qcckPost({ sfzh }, "/bagl/mosty-base/baxx/cyry/queryBySfzh").then(res=>{
|
qcckPost({ sfzh }, "/mosty-base/baxx/cyry/queryBySfzh").then(res=>{
|
||||||
if(!res) {
|
if(!res) {
|
||||||
ElNotification({ title: "提示", message: "无访问权限", duration: 3000});
|
ElNotification({ title: "提示", message: "无访问权限", duration: 3000});
|
||||||
store.dispatch("user/logout");
|
store.dispatch("user/logout");
|
||||||
}else{
|
}else{
|
||||||
let obj = { sfzh:res.sfzh , xm:res.xm , pxgs:res.pxgs , pxgsid:res.pxgsid }
|
let obj = { sfzh:res.sfzh , xm:res.xm , pxgs:res.pxgs , pxgsid:res.pxgsid }
|
||||||
setItem("userInfo", JSON.stringify(obj));
|
setItem("userInfo", JSON.stringify(obj));
|
||||||
// window.location.href = "/";
|
|
||||||
router.push("/");
|
router.push("/");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user