Merge branch 'gitlink_ssr_head' into pre_gitlink_ssr

This commit is contained in:
caishi 2026-01-16 08:24:05 +08:00
commit afacbb7a90
2 changed files with 3 additions and 2 deletions

View File

@ -195,7 +195,7 @@ class App extends Component {
let pathname = window.location.pathname ? window.location.pathname.split('/')[1] : '';
pathname && this.getPathnameType(pathname);
const login = cookie.load("login");
const login = cookie.load("autologin_trustie");
let path = this.props.history.location.pathname;
if(login && (path === "/login" || path === "/register" || path === "/resetPassword" || path.indexOf("/bindlogin") >-1 )){
this.props.history.push(`/${login}`);

View File

@ -25,7 +25,8 @@ function Bind(props){
if(result && result.data.status === 0){
cookie.save("supplyphone",true);
cookie.save("login",result.data.login);
window.location.href = "/"+result.data.login;
let gopage = cookie.load("go_page");
window.location.href = gopage || "/"+result.data.login;
}else{
props.showNotification(result.data.message);
}