Commit 68eca25d by archer

fix: ssr close

parent 9eed3214
......@@ -8,7 +8,7 @@ interface Props {
export function useScreen(data?: Props) {
const { defaultIsPc = false } = data || {};
const [isPc] = useMediaQuery('(min-width: 900px)', {
ssr: true,
ssr: false,
fallback: defaultIsPc
});
......
......@@ -12,10 +12,10 @@ import { MyModelsTypeEnum } from '@/constants/user';
import dynamic from 'next/dynamic';
const Avatar = dynamic(() => import('@/components/Avatar'), {
ssr: true
ssr: false
});
const Tabs = dynamic(() => import('@/components/Tabs'), {
ssr: true
ssr: false
});
const ModelList = ({ modelId }: { modelId: string }) => {
......
......@@ -5,7 +5,7 @@ import dynamic from 'next/dynamic';
import MyIcon from '@/components/Icon';
const APIKeyModal = dynamic(() => import('@/components/APIKeyModal'), {
ssr: true
ssr: false
});
const API = ({ modelId }: { modelId: string }) => {
......
......@@ -23,21 +23,21 @@ import Tabs from '@/components/Tabs';
import BillTable from './components/BillTable';
const PayRecordTable = dynamic(() => import('./components/PayRecordTable'), {
ssr: true
ssr: false
});
const PromotionTable = dynamic(() => import('./components/PromotionTable'), {
ssr: true
ssr: false
});
const InformTable = dynamic(() => import('./components/InformTable'), {
ssr: true
ssr: false
});
const PayModal = dynamic(() => import('./components/PayModal'), {
loading: () => <Loading fixed={false} />,
ssr: true
ssr: false
});
const WxConcat = dynamic(() => import('@/components/WxConcat'), {
loading: () => <Loading fixed={false} />,
ssr: true
ssr: false
});
enum TableEnum {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment