修改用户登陆认证流程
This commit is contained in:
@@ -6,6 +6,7 @@ import "./scss/qweather-icons/qweather-icons.css";
|
||||
import { useGlobalStore } from "./store/global";
|
||||
import { removeStorage } from "./store/storage";
|
||||
import { sceneRedirectLogic } from './utils/helper'
|
||||
import { silentLogin } from "./services/loginService";
|
||||
|
||||
interface AppProps {
|
||||
children: ReactNode;
|
||||
@@ -24,6 +25,9 @@ class App extends Component<AppProps> {
|
||||
// 这里可以自定义弹窗(或直接默认同意)
|
||||
resolve({ event: 'agree' }); // 同意隐私协议
|
||||
});
|
||||
|
||||
// 移除这里的静默登录调用,避免重复调用
|
||||
// 静默登录在 home_pages/index.tsx 中统一执行
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
Reference in New Issue
Block a user