mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
1、实现富文本编辑器
2、实现文档转换为PDF、MOBI、EPUB格式
This commit is contained in:
@@ -109,7 +109,15 @@ func (c *BaseController) ExecuteViewPathTemplate(tplName string,data interface{}
|
||||
}
|
||||
|
||||
func (c *BaseController) BaseUrl() string {
|
||||
return c.Ctx.Input.Scheme() + "://" + c.Ctx.Request.Host
|
||||
baseUrl := beego.AppConfig.DefaultString("baseurl","")
|
||||
if baseUrl != "" {
|
||||
if strings.HasSuffix(baseUrl,"/"){
|
||||
baseUrl = strings.TrimSuffix(baseUrl,"/")
|
||||
}
|
||||
}else{
|
||||
baseUrl = c.Ctx.Input.Scheme() + "://" + c.Ctx.Request.Host
|
||||
}
|
||||
return baseUrl
|
||||
}
|
||||
|
||||
//显示错误信息页面.
|
||||
|
||||
Reference in New Issue
Block a user