fix: 背景渲染问题
This commit is contained in:
@@ -91,14 +91,14 @@ function Index() {
|
||||
const fetchDetail = async () => {
|
||||
if (!id) return;
|
||||
|
||||
const res = await DetailService.getDetail(Number(id)).catch(e => {
|
||||
const res = await DetailService.getDetail(Number(id)).catch((e) => {
|
||||
// 跳转到空状态页面
|
||||
(Taro as any).redirectTo({
|
||||
url: '/other_pages/emptyState/index',
|
||||
url: "/other_pages/emptyState/index",
|
||||
});
|
||||
return e;
|
||||
});
|
||||
|
||||
|
||||
if (res.code === 0) {
|
||||
setDetail(res.data);
|
||||
fetchUserInfoById(res.data.publisher_id);
|
||||
@@ -188,7 +188,7 @@ function Index() {
|
||||
enhanced
|
||||
showScrollbar={false}
|
||||
scrollIntoView={scrollToTarget}
|
||||
scroll-with-animation
|
||||
// scroll-with-animation
|
||||
>
|
||||
{/* custom navbar */}
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user