feat: support select child packer

This commit is contained in:
ReaJason
2026-06-28 21:22:31 +08:00
parent a267048ed3
commit f19b1be9d4
16 changed files with 842 additions and 509 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ const fetchServerConfig = () => fetchJson<ServerConfig>(`${env.API_URL}/api/conf
const fetchMainConfig = () => fetchJson<MainConfig>(`${env.API_URL}/api/config`);
const fetchPackerConfig = () => fetchJson<PackerConfig>(`${env.API_URL}/api/config/packers`);
const fetchPackerConfig = () => fetchJson<PackerConfig>(`${env.API_URL}/api/config/packers/tree`);
export default function MemShellPage() {
const { data: serverConfig } = useQuery<ServerConfig>({
+1 -1
View File
@@ -36,7 +36,7 @@ export default function ProbeShellGenerator() {
const { data: packerConfig } = useQuery<PackerConfig>({
queryKey: ["packerConfig"],
queryFn: async () => {
const response = await fetch(`${env.API_URL}/api/config/packers`);
const response = await fetch(`${env.API_URL}/api/config/packers/tree`);
return await response.json();
},
});