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