This commit is contained in:
Megghy
2023-10-12 11:50:41 +08:00
parent 02c2309255
commit 826f99350c
5 changed files with 275 additions and 18 deletions

View File

@@ -5,16 +5,14 @@ import { NotifactionInfo } from '@/api/api-models'
import { useAccount } from '@/api/account'
const account = useAccount()
const { data, loading, run } = useRequest(
() => {
return QueryGetAPI<NotifactionInfo>(NOTIFACTION_API_URL + 'get')
},
{
errorRetryCount: 5,
pollingInterval: 5000,
pollingWhenHidden: false,
}
)
const { data, run } = useRequest(get, {
errorRetryCount: 5,
pollingInterval: 5000,
pollingWhenHidden: false,
})
function get() {
return QueryGetAPI<NotifactionInfo>(NOTIFACTION_API_URL + 'get')
}
export const notifactions = () => data
export const GetNotifactions = () => {