1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-02-10 23:27:08 +08:00
parent a63f1d4dab
commit 31f888755f

View File

@ -253,10 +253,7 @@ Volcanos("misc", {
Resource: function(can, path, space, serve) { if (!path) { return "" } Resource: function(can, path, space, serve) { if (!path) { return "" }
if (!can.base.beginWith(path, web.HTTP, nfs.PS)) { path = nfs.P+path+(path.indexOf("usr/icons/") == -1? (space? can.core.Split(_version, "&")[0]: _version): "") } if (!can.base.beginWith(path, web.HTTP, nfs.PS)) { path = nfs.P+path+(path.indexOf("usr/icons/") == -1? (space? can.core.Split(_version, "&")[0]: _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 (!can.base.beginWith(path, web.HTTP)) { if (serve && serve.indexOf(location.origin) == -1) { var u = can.base.ParseURL(serve); path = u.origin + path } }
if (!space && can.base.beginWith(path, web.HTTP)) { if (!space && !can.base.beginWith(path, web.HTTP)) { return location.origin+path }
debugger
return location.origin+path
}
if (!space && path.indexOf("pod=") > 0) { return path } if (!space && path.indexOf("pod=") > 0) { return path }
if (can.base.beginWith(path, "/") && path.indexOf("pod=") > 0) { return path } if (can.base.beginWith(path, "/") && path.indexOf("pod=") > 0) { return path }
return can.base.MergeURL(path, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD)) return can.base.MergeURL(path, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD))