fix: 修复发布后分享弹窗打开问题

This commit is contained in:
2026-02-07 18:10:44 +08:00
parent ff864fe64d
commit 87eaa31cef
2 changed files with 12 additions and 6 deletions

View File

@@ -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();
};