refactor: api and command

This commit is contained in:
GyDi
2021-12-25 22:33:29 +08:00
parent afa56e916e
commit e76855ad0e
22 changed files with 369 additions and 329 deletions

View File

@@ -1,10 +1,10 @@
import useSWR from "swr";
import { Box, List, Paper, Typography } from "@mui/material";
import services from "../services";
import { getProxies } from "../services/api";
import ProxyGroup from "../components/proxy-group";
const ProxyPage = () => {
const { data } = useSWR("getProxies", services.getProxies);
const { data } = useSWR("getProxies", getProxies);
const { groups = [] } = data ?? {};
return (