From 941e97f98bee9aa2bc175c1f2723e447d5a3f704 Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 26 Jun 2025 22:35:01 +0800 Subject: [PATCH] add some --- base/ctx/command.go | 3 +++ info.go | 3 +++ render.go | 3 +++ 3 files changed, 9 insertions(+) diff --git a/base/ctx/command.go b/base/ctx/command.go index 04701898..da84f85d 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -217,6 +217,9 @@ func ShortCmd(key string) string { return key } func ResourceFile(m *ice.Message, file string, arg ...string) string { + if strings.Contains(file, "bi ") { + return file + } if kit.HasPrefix(file, nfs.PS, ice.HTTP) { return file } else if nfs.Exists(m, file) { diff --git a/info.go b/info.go index 6150f9b3..2d635892 100644 --- a/info.go +++ b/info.go @@ -308,6 +308,9 @@ func Module(prefix string, arg ...Any) { } } func (m *Message) FileURI(dir string) string { + if strings.Contains(dir, "bi ") { + return dir + } if dir == "" || kit.HasPrefix(dir, HTTP) { return dir } diff --git a/render.go b/render.go index 0be928a8..da0b3b1e 100644 --- a/render.go +++ b/render.go @@ -268,6 +268,9 @@ func (m *Message) DisplayCSS(file string, arg ...Any) *Message { return m } func (m *Message) Resource(file string, arg ...string) string { + if strings.Contains(file, "bi ") { + return file + } if len(arg) > 0 && arg[0] != "" { if strings.HasPrefix(file, HTTP) { return file