From 68372c797f2edcf53d0da06d4619bf18f9f52c0f Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 17 Mar 2024 15:40:21 +0800 Subject: [PATCH] add some --- lib/misc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/misc.js b/lib/misc.js index d04cabb6..7a9deca4 100644 --- a/lib/misc.js +++ b/lib/misc.js @@ -195,6 +195,7 @@ Volcanos("misc", { Resource(can, path, space, serve) { if (!can.base.beginWith(path, web.HTTP, nfs.PS)) { path = nfs.REQUIRE+path+_version } if (!can.base.beginWith(path, web.HTTP)) { if (serve && serve.indexOf(location.origin) == -1) { var u = can.base.ParseURL(serve); path = u.origin + path } } + if (path.indexOf("pod=") > 0) { return path } return can.base.MergeURL(path, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD)) }, ShareLocal(can, path, space) { if (can.base.beginWith(path, web.HTTP, nfs.PS)) { return path }