1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-15 13:36:08 +08:00
parent 30ac9411bf
commit ae10996a7b

View File

@ -258,7 +258,7 @@ func (m *Message) Resource(file string) string { return m.resource(file) }
func (m *Message) resource(file string) string {
p := kit.FileLines(3)
kit.If(file == "", func() { p = kit.ExtChange(p, JS) }, func() {
if strings.HasPrefix(file, PS) {
if kit.HasPrefix(file, PS, HTTP) {
p = file
} else {
p = path.Join(path.Dir(p), file)