This commit is contained in:
2025-09-26 17:14:18 +08:00
parent 06db4baf7a
commit 26ea6dbdcf

View File

@ -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("/");
} }
}) })