fix: rename page file

This commit is contained in:
shuai 2023-03-24 17:25:39 +08:00
parent af7307d704
commit ad142a38e5
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,3 @@
/* eslint-disable import/no-unresolved */
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Container } from 'react-bootstrap'; import { Container } from 'react-bootstrap';
@ -7,7 +6,7 @@ import { HttpErrorContent } from '@/components';
const Index = () => { const Index = () => {
useEffect(() => { useEffect(() => {
// auto height of container // auto height of container
const pageWrap = document.querySelector('.page-wrap'); const pageWrap = document.querySelector('.page-wrap') as HTMLElement;
pageWrap.style.display = 'contents'; pageWrap.style.display = 'contents';
return () => { return () => {

View File

@ -1,4 +1,3 @@
/* eslint-disable import/no-unresolved */
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Container } from 'react-bootstrap'; import { Container } from 'react-bootstrap';
@ -7,7 +6,7 @@ import { HttpErrorContent } from '@/components';
const Index = () => { const Index = () => {
useEffect(() => { useEffect(() => {
// auto height of container // auto height of container
const pageWrap = document.querySelector('.page-wrap'); const pageWrap = document.querySelector('.page-wrap') as HTMLElement;
pageWrap.style.display = 'contents'; pageWrap.style.display = 'contents';
return () => { return () => {