Skip to content

Commit f72fa8d

Browse files
committed
feat: Add lazy loading for images in TalkListContent
1 parent dd542d4 commit f72fa8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

islands/setDefaultState.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export default function setDefaultState({ state }: { state: AppStateType }) {
3434
state.friendid.value = data.friendid;
3535
state.roomName.value = roomInfo.nickName;
3636
setIschoiseUser(true, state.isChoiceUser);
37+
const path = window.location.pathname;
38+
window.history.pushState(
39+
"",
40+
"",
41+
"/talk/" + state.friendid.value,
42+
)
3743
}
3844
}
3945
break;

0 commit comments

Comments
 (0)