Browse Source

perf:附件不再使用绝对路径

lifei6671 7 years ago
parent
commit
a95ea86648
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conf/enumerate.go

+ 1 - 1
conf/enumerate.go

@@ -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