合伙人端验证是否已经绑定手机号,否则不支持微信一键登录
This commit is contained in:
@@ -19,7 +19,7 @@ export default function AuthGate({ children }: { children: React.ReactNode }) {
|
||||
|
||||
if (!authenticated && !PUBLIC_PATHS.has(location.pathname)) {
|
||||
const profile = getPartnerProfile();
|
||||
if (profile && hasPartnerWxSession()) {
|
||||
if (profile && hasPartnerWxSession() && profile.hasWechat) {
|
||||
return <Navigate to="/login?quick=1" replace state={{ from: location }} />;
|
||||
}
|
||||
return <Navigate to="/login" replace state={{ from: location }} />;
|
||||
|
||||
Reference in New Issue
Block a user