浏览代码

:art: Changelog supports Traditional Chinese https://github.com/siyuan-note/siyuan/issues/8333

Daniel 2 年之前
父节点
当前提交
826bcba394
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/api/system.go

+ 1 - 1
kernel/api/system.go

@@ -51,7 +51,7 @@ func getChangelog(c *gin.Context) {
 
 	changelogPath := filepath.Join(changelogsDir, "v"+util.Ver, "v"+util.Ver+"_"+model.Conf.Lang+".md")
 	if !gulu.File.IsExist(changelogPath) {
-		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
+		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver, "v"+util.Ver+".md")
 		if !gulu.File.IsExist(changelogPath) {
 			logging.LogErrorf("changelog not found: %s", changelogPath)
 			return