fix
This commit is contained in:
parent
31f8a8a856
commit
2e3e46d687
|
|
@ -38,9 +38,15 @@ export const EdApiDB = ({
|
||||||
<AutoHeightTextarea
|
<AutoHeightTextarea
|
||||||
value={local.url}
|
value={local.url}
|
||||||
className="text-[13px] border p-2 mb-2 "
|
className="text-[13px] border p-2 mb-2 "
|
||||||
onChange={(e) => {
|
onChange={async (e) => {
|
||||||
local.url = e.currentTarget.value.replace(/\s/, "");
|
local.url = e.currentTarget.value.replace(/\s/, "");
|
||||||
db.url = local.url;
|
db.url = local.url;
|
||||||
|
|
||||||
|
await api._deploy({
|
||||||
|
type: "db-update",
|
||||||
|
id_site: p.site.id,
|
||||||
|
url: db.url,
|
||||||
|
});
|
||||||
local.render();
|
local.render();
|
||||||
}}
|
}}
|
||||||
onBlur={async () => {
|
onBlur={async () => {
|
||||||
|
|
|
||||||
|
|
@ -41,15 +41,11 @@ export const EdApiTab: FC<{
|
||||||
let url = target ? target.api_url : api_url;
|
let url = target ? target.api_url : api_url;
|
||||||
const res = await checkAPI(url, id_site);
|
const res = await checkAPI(url, id_site);
|
||||||
|
|
||||||
|
|
||||||
local.api_url = url;
|
local.api_url = url;
|
||||||
local.status = "online";
|
local.status = "online";
|
||||||
|
|
||||||
if (typeof res === "object") {
|
if (typeof res === "object") {
|
||||||
// await apiRef[apiUrl(p)]._deploy({
|
|
||||||
// type: "db-update",
|
|
||||||
// id_site: p.site.id,
|
|
||||||
// url: local.db.url,
|
|
||||||
// });
|
|
||||||
|
|
||||||
local.db = res.db;
|
local.db = res.db;
|
||||||
local.domains = res.domains;
|
local.domains = res.domains;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue