mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 16:04:56 +00:00
登录, 创建本地帐户优化
This commit is contained in:
@@ -2016,11 +2016,11 @@ function userMenu(allUsers) {
|
||||
label: getMsg('Logout'),
|
||||
click: function(e) {
|
||||
Loading.show();
|
||||
onClose(function () {
|
||||
UserService.logout(function () {
|
||||
UserService.logout(function () {
|
||||
onClose(function () {
|
||||
toLogin();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -12,7 +12,7 @@ var Service = {
|
||||
};
|
||||
|
||||
var db = require('db');
|
||||
db.initForLogin();
|
||||
db.initGlobal();
|
||||
|
||||
// 全局变量
|
||||
var ApiService = Service.apiService;
|
||||
|
Reference in New Issue
Block a user