mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 改进数据仓库密钥初始化确认过程
This commit is contained in:
parent
02c7182856
commit
dd53d345a4
9 changed files with 49 additions and 32 deletions
|
|
@ -219,7 +219,7 @@ func importRepoKey(c *gin.Context) {
|
|||
base64Key := arg["key"].(string)
|
||||
if err := model.ImportRepoKey(base64Key); nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(137)
|
||||
ret.Msg = fmt.Sprintf(model.Conf.Language(137), err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -230,7 +230,7 @@ func initRepoKey(c *gin.Context) {
|
|||
|
||||
if err := model.InitRepoKey(); nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(137)
|
||||
ret.Msg = fmt.Sprintf(model.Conf.Language(137), err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue