From 4a7218e539c7c99d8fde14069681cbbb635a29a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=A3=B0?= Date: Mon, 22 Jul 2024 13:18:03 +0800 Subject: [PATCH] fix: configuration page broken --- src/api/controllers/configuration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/controllers/configuration.tsx b/src/api/controllers/configuration.tsx index c47b8eb..595535c 100644 --- a/src/api/controllers/configuration.tsx +++ b/src/api/controllers/configuration.tsx @@ -139,7 +139,7 @@ export function route(hono: THono) { if (!settingsTypes.includes(type as SettingType)) { return c.text('Not Found:' + type, 404); } - const schemaUrl = `${c.origin}static/json-schemas/${type}`; + const schemaUrl = `${c.origin}/static/json-schemas/${type}`; let data = null; @@ -162,7 +162,7 @@ export function route(hono: THono) { window.starting_value = ${raw(JSON.stringify(data ?? {}))}; window.submit_url = - '${c.origin}configuration/${id}/${type}?token=${token}'; + '${c.origin}/configuration/${id}/${type}?token=${token}'; window._options = { schema: defaultSchema, startval: window.starting_value,