|
@@ -19,7 +19,7 @@ import "./app.scss";
|
|
|
|
|
|
import { PropsWithChildren } from "react";
|
|
|
import { useRequest } from "ahooks";
|
|
|
-import Taro, { useLaunch } from "@tarojs/taro";
|
|
|
+import Taro, { useDidShow } from "@tarojs/taro";
|
|
|
import AppContext from "./context/appContext";
|
|
|
import { Provider as ReduxProvider } from "react-redux";
|
|
|
import ReduxUtil from "./utils/reduxUtil";
|
|
@@ -34,8 +34,7 @@ const App = (props: PropsWithChildren<IAppProps>) => {
|
|
|
useRequest(() => {
|
|
|
return UserHelper.cacheTabMenu();
|
|
|
});
|
|
|
- useLaunch((options) => {
|
|
|
- console.log(options);
|
|
|
+ useDidShow((options) => {
|
|
|
if (options.query.source === "app") {
|
|
|
RouteUtil.toWebViewPage({
|
|
|
url: "https://mp.weixin.qq.com/s/X0OAslHaFjld6Zf2ifVC5A",
|