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