mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
♻️ 通过域名 siyuan.localhost 加载 https://github.com/siyuan-note/siyuan/issues/6368
This commit is contained in:
parent
f8d01913a4
commit
8bc889659b
19 changed files with 38 additions and 47 deletions
|
|
@ -209,7 +209,7 @@ func exportTempContent(c *gin.Context) {
|
|||
}
|
||||
url := path.Join("/export/temp/", filepath.Base(p))
|
||||
ret.Data = map[string]interface{}{
|
||||
"url": "http://127.0.0.1:" + util.ServerPort + url,
|
||||
"url": "http://" + util.LocalHost + ":" + util.ServerPort + url,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -229,7 +229,7 @@ func exportPreviewHTML(c *gin.Context) {
|
|||
}
|
||||
name, content := model.ExportHTML(id, "", true, keepFold)
|
||||
// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894
|
||||
content = strings.ReplaceAll(content, "http://127.0.0.1:"+util.ServerPort+"/#", "#")
|
||||
content = strings.ReplaceAll(content, "http://"+util.LocalHost+":"+util.ServerPort+"/#", "#")
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"id": id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue