Skip to content

Commit 40eceb3

Browse files
committed
fix: redirector for tina ui
1 parent 71af149 commit 40eceb3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/pages/admin/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React, { useEffect } from 'react';
2+
import useBaseUrl from '@docusaurus/useBaseUrl';
3+
4+
export default function AdminRedirect() {
5+
useEffect(() => {
6+
window.location.replace(
7+
useBaseUrl('/admin/index.html')
8+
);
9+
}, []);
10+
return <p>Redirecting to Tina Admin…</p>;
11+
}

0 commit comments

Comments
 (0)