mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 23:55:50 +00:00
notebook, note同步
note待同步内容, 图片
This commit is contained in:
@@ -1295,8 +1295,13 @@ LeaAce = {
|
||||
};
|
||||
|
||||
// 全量同步
|
||||
function fullSync() {
|
||||
|
||||
function fullSync(callback) {
|
||||
log('full sync');
|
||||
SyncService.fullSync(function(ret) {
|
||||
log('after....')
|
||||
log(ret);
|
||||
callback && callback();
|
||||
});
|
||||
}
|
||||
|
||||
// note.html调用
|
||||
@@ -1340,7 +1345,9 @@ function initPage() {
|
||||
UserService.init(function(userInfo) {
|
||||
if(userInfo) {
|
||||
UserInfo = userInfo;
|
||||
_init();
|
||||
fullSync(function() {
|
||||
_init();
|
||||
});
|
||||
} else {
|
||||
location.href = 'login.html';
|
||||
}
|
||||
|
Reference in New Issue
Block a user