We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21c4fb0 + 017e1a0 commit 955fe0bCopy full SHA for 955fe0b
multi_tab/src/main.tsx
@@ -23,21 +23,22 @@ if ('serviceWorker' in navigator) {
23
});
24
25
}
26
+/*const pathname = window.location.pathname;*/
27
-const router = createBrowserRouter([
28
+/*const router = createBrowserRouter([
29
{
- path: '/',
30
+ path: pathname + '/',
31
element: (
32
<App/>
33
),
34
},
35
- path: '/table',
36
+ path: pathname + '/table',
37
38
<DataTableManager />
39
)
40
-])
41
+])*/
42
43
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
44
<React.StrictMode>
0 commit comments