mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 云端同步模式支持 完全手动同步 模式 https://github.com/siyuan-note/siyuan/issues/7295
This commit is contained in:
parent
dbce98d811
commit
7098a2c8b1
7 changed files with 271 additions and 272 deletions
|
|
@ -57,7 +57,21 @@ func performSync(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
model.SyncData(false, false, true)
|
||||
if 3 != model.Conf.Sync.Mode {
|
||||
model.SyncData(false, false, true)
|
||||
return
|
||||
}
|
||||
|
||||
// 云端同步模式支持 `完全手动同步` 模式 https://github.com/siyuan-note/siyuan/issues/7295
|
||||
upload := true
|
||||
if uploadArg := arg["upload"]; nil != uploadArg {
|
||||
upload = uploadArg.(bool)
|
||||
}
|
||||
if upload {
|
||||
model.SyncDataUpload()
|
||||
} else {
|
||||
model.SyncDataDownload()
|
||||
}
|
||||
}
|
||||
|
||||
func performBootSync(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue