mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
4f812bcf0c
commit
40945fc221
13 changed files with 50 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {needSubscribe} from "../util/needSubscribe";
|
||||
import {needLogin, needSubscribe} from "../util/needSubscribe";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {fetchPost} from "../util/fetch";
|
||||
import {Dialog} from "../dialog";
|
||||
|
|
@ -147,7 +147,8 @@ export const syncGuide = (app?: App) => {
|
|||
return;
|
||||
}
|
||||
/// #if MOBILE
|
||||
if (0 === window.siyuan.config.sync.provider && needSubscribe()) {
|
||||
if ((0 === window.siyuan.config.sync.provider && needSubscribe()) ||
|
||||
(0 !== window.siyuan.config.sync.provider && needLogin())) {
|
||||
return;
|
||||
}
|
||||
/// #else
|
||||
|
|
@ -164,6 +165,12 @@ export const syncGuide = (app?: App) => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (0 !== window.siyuan.config.sync.provider && needLogin("") && app) {
|
||||
const dialogSetting = openSetting(app);
|
||||
dialogSetting.element.querySelector('.b3-tab-bar [data-name="account"]').dispatchEvent(new CustomEvent("click"));
|
||||
dialogSetting.element.querySelector('.config__tab-container[data-name="account"]').setAttribute("data-action", "go-repos");
|
||||
return;
|
||||
}
|
||||
/// #endif
|
||||
if (!window.siyuan.config.repo.key) {
|
||||
setKey(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue