fix: 修复发布后分享弹窗打开问题
This commit is contained in:
@@ -23,6 +23,7 @@ import SupplementalNotes from "./components/SupplementalNotes";
|
||||
import OrganizerInfo from "./components/OrganizerInfo";
|
||||
import SharePopup from "./components/SharePopup";
|
||||
import { navto, toast } from "@/utils/helper";
|
||||
import { delay } from "@/utils";
|
||||
import ArrowLeft from "@/static/detail/icon-arrow-left.svg";
|
||||
// import Logo from "@/static/detail/icon-logo-go.svg";
|
||||
import styles from "./index.module.scss";
|
||||
@@ -53,6 +54,12 @@ function Index() {
|
||||
await waitForAuthInit();
|
||||
// 然后再获取用户信息
|
||||
await fetchUserInfo();
|
||||
|
||||
await delay(1000);
|
||||
|
||||
if (from !== "publish") {
|
||||
handleShare(true);
|
||||
}
|
||||
};
|
||||
init();
|
||||
}, []);
|
||||
@@ -105,10 +112,6 @@ function Index() {
|
||||
fetchUserInfoById(res.data.publisher_id);
|
||||
}
|
||||
|
||||
if (from === "publish") {
|
||||
handleShare(true);
|
||||
}
|
||||
|
||||
// Taro.hideLoading();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user