This commit is contained in:
2024-11-03 00:37:31 +08:00
parent b7b895d155
commit 35b902b30d
15 changed files with 15 additions and 15 deletions

View File

@@ -770,7 +770,7 @@ const re = class re {
})));
k(this, "getWidgetComponent", async (t) => {
if (!t) throw "getWidgetComponent widget is required";
if (t != null && t.startsWith("@pkg/")) return await import(`${N.appUrl}/api/pkg-import?name=${t}`);
if (t != null && t.startsWith("@pkg/")) return await import(`${N.appUrl}/api/pkg-import/web?name=${t}`);
if (t != null && t.startsWith("blob:") || t != null && t.startsWith("http:") || t != null && t.startsWith("https:")) return await import(t);
const [, a] = t == null ? void 0 : t.split("@ff/"), [, n] = t == null ? void 0 : t.split("@app/"), [, r] = t == null ? void 0 : t.split("@pkg/"), [, i] = t == null ? void 0 : t.split("@fsdpf/");
try {