mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
🐛 完全手动同步 模式下 Android 前后台切换时不应该触发自动同步 Fix https://github.com/siyuan-note/siyuan/issues/7349
This commit is contained in:
parent
99993ab820
commit
5bac9c4b6d
1 changed files with 6 additions and 3 deletions
|
|
@ -63,10 +63,13 @@ func performSync(c *gin.Context) {
|
|||
}
|
||||
|
||||
// 云端同步模式支持 `完全手动同步` 模式 https://github.com/siyuan-note/siyuan/issues/7295
|
||||
upload := true
|
||||
if uploadArg := arg["upload"]; nil != uploadArg {
|
||||
upload = uploadArg.(bool)
|
||||
uploadArg := arg["upload"]
|
||||
if nil == uploadArg {
|
||||
// 必须传入同步方向,未传的话不执行同步
|
||||
return
|
||||
}
|
||||
|
||||
upload := uploadArg.(bool)
|
||||
if upload {
|
||||
model.SyncDataUpload()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue