We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd75e9 commit d90495cCopy full SHA for d90495c
chat2db-client/src/pages/main/index.tsx
@@ -144,8 +144,7 @@ function MainPage(props: IProps) {
144
}
145
146
147
- const urlTab = getUrlParam('tab');
148
- const initPage = urlTab || localStorage.getItem('curPage');
+ const initPage = localStorage.getItem('curPage');
149
const initPageIndex = navConfig.findIndex((t) => `${t.key}` === initPage);
150
const activeIndex = initPageIndex > -1 ? initPageIndex : 2;
151
navConfig[activeIndex].isLoad = true;
@@ -156,8 +155,6 @@ function MainPage(props: IProps) {
156
155
if (item.openBrowser) {
157
window.open(item.openBrowser, '_blank');
158
} else {
159
- const newURL = updateQueryStringParameter('tab', item.key);
160
- history.pushState({}, '', newURL);
161
setActiveNav(item);
162
163
};
0 commit comments