|
@@ -53,6 +53,7 @@ import showAlert from "@/components/basic/Alert";
|
|
|
import { APP_VERSION, WX_VERSION } from "@/services/http/api";
|
|
import { APP_VERSION, WX_VERSION } from "@/services/http/api";
|
|
|
import { wxPubFollow } from "@/services/permission";
|
|
import { wxPubFollow } from "@/services/permission";
|
|
|
import { repeat } from "lodash";
|
|
import { repeat } from "lodash";
|
|
|
|
|
+import { setWXFollow } from "@/store/permission";
|
|
|
|
|
|
|
|
const utc = require('dayjs/plugin/utc')
|
|
const utc = require('dayjs/plugin/utc')
|
|
|
const timezone = require('dayjs/plugin/timezone')
|
|
const timezone = require('dayjs/plugin/timezone')
|
|
@@ -304,7 +305,9 @@ export default function Page() {
|
|
|
checkAuthorized();
|
|
checkAuthorized();
|
|
|
//检查用户是否添加过小程序
|
|
//检查用户是否添加过小程序
|
|
|
checkAddToMini();
|
|
checkAddToMini();
|
|
|
- wxPubFollow({ force_refresh: true });
|
|
|
|
|
|
|
+ wxPubFollow({ force_refresh: true }).then(res => {
|
|
|
|
|
+ dispatch(setWXFollow((res as any).wx_pub_followed));
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|