mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
1012
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user