fix
This commit is contained in:
parent
093af3d3bc
commit
1478d02cfc
|
|
@ -38,11 +38,14 @@ export const ExternalDeploy = () => {
|
||||||
local.render();
|
local.render();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
local.api = createAPI(p.site.api_url);
|
const url = p.site.api_url;
|
||||||
|
|
||||||
|
local.api = createAPI(url);
|
||||||
let res = await local.api._deploy({
|
let res = await local.api._deploy({
|
||||||
type: "check",
|
type: "check",
|
||||||
id_site: p.site.id,
|
id_site: p.site.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
local.db.url = res.db.url;
|
local.db.url = res.db.url;
|
||||||
local.now = res.now;
|
local.now = res.now;
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,8 @@ export const fetchSendApi = async (
|
||||||
|
|
||||||
if (!win.frmapi) {
|
if (!win.frmapi) {
|
||||||
win.frmapi = {};
|
win.frmapi = {};
|
||||||
|
}
|
||||||
|
if (!win.frmapi[base]) {
|
||||||
win.frmapi[base] = await createFrameCors(base, win);
|
win.frmapi[base] = await createFrameCors(base, win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue