perf: model provider show; perf: get init data buffer (#3459)
* pr code * perf: model table show * perf: model provider show * perf: get init data buffer * perf: get init data buffer * perf: icon
This commit is contained in:
@@ -61,7 +61,7 @@ const Layout = ({ children }: { children: JSX.Element }) => {
|
||||
// System hook
|
||||
const { data, refetch: refetchUnRead } = useQuery(['getUnreadCount'], getUnreadCount, {
|
||||
enabled: !!userInfo && !!feConfigs.isPlus,
|
||||
refetchInterval: 10000
|
||||
refetchInterval: 30000
|
||||
});
|
||||
const unread = data?.unReadCount || 0;
|
||||
const importantInforms = data?.importantInforms || [];
|
||||
|
||||
@@ -83,9 +83,10 @@ const Navbar = ({ unread }: { unread: number }) => {
|
||||
'/account/team',
|
||||
'/account/usage',
|
||||
'/account/apikey',
|
||||
'/account/individuation',
|
||||
'/account/setting',
|
||||
'/account/inform',
|
||||
'/account/promotion'
|
||||
'/account/promotion',
|
||||
'/account/model'
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -55,9 +55,10 @@ const NavbarPhone = ({ unread }: { unread: number }) => {
|
||||
'/account/team',
|
||||
'/account/usage',
|
||||
'/account/apikey',
|
||||
'/account/individuation',
|
||||
'/account/setting',
|
||||
'/account/inform',
|
||||
'/account/promotion'
|
||||
'/account/promotion',
|
||||
'/account/model'
|
||||
],
|
||||
unread
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user