mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-28 07:54:13 +08:00
fix(rules): request token error
This commit is contained in:
parent
8d62c9f510
commit
44739f6962
@ -2,9 +2,8 @@ import { createSignal } from 'solid-js'
|
|||||||
import { useRequest } from '~/signals'
|
import { useRequest } from '~/signals'
|
||||||
import type { Rule, RuleProvider } from '~/types'
|
import type { Rule, RuleProvider } from '~/types'
|
||||||
|
|
||||||
const request = useRequest()
|
|
||||||
|
|
||||||
export const useRules = () => {
|
export const useRules = () => {
|
||||||
|
const request = useRequest()
|
||||||
const [rules, setRules] = createSignal<Rule[]>([])
|
const [rules, setRules] = createSignal<Rule[]>([])
|
||||||
const [rulesProviders, setRulesProviders] = createSignal<RuleProvider[]>([])
|
const [rulesProviders, setRulesProviders] = createSignal<RuleProvider[]>([])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user