mirror of https://github.com/mindoc-org/mindoc.git
perf:附件不再使用绝对路径
parent
4d0b132200
commit
a95ea86648
|
@ -213,7 +213,7 @@ func URLFor(endpoint string, values ...interface{}) string {
|
||||||
pathUrl := beego.URLFor(endpoint, values ...)
|
pathUrl := beego.URLFor(endpoint, values ...)
|
||||||
|
|
||||||
if baseUrl == "" {
|
if baseUrl == "" {
|
||||||
baseUrl = BaseUrl
|
baseUrl = "/"
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(pathUrl, "http://") {
|
if strings.HasPrefix(pathUrl, "http://") {
|
||||||
return pathUrl
|
return pathUrl
|
||||||
|
|
Loading…
Reference in New Issue