mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed next module loading and undefined document
This commit is contained in:
parent
de999a0f1f
commit
f964011af1
4 changed files with 19 additions and 1 deletions
|
@ -9,6 +9,10 @@ interface IProps {
|
|||
}
|
||||
|
||||
const SidebarRouter: FC<IProps> = ({ prefix = '', isLab }) => {
|
||||
if (typeof document === 'undefined') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return createPortal(
|
||||
<Authorized>
|
||||
<SubmitBar isLab={isLab} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue