登录, 创建本地帐户优化

This commit is contained in:
life
2015-11-21 16:45:07 +08:00
parent f16e95e86f
commit 4bb8c5f233
5 changed files with 77 additions and 67 deletions

View File

@@ -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();
});
});
});
});
}
});

View File

@@ -12,7 +12,7 @@ var Service = {
};
var db = require('db');
db.initForLogin();
db.initGlobal();
// 全局变量
var ApiService = Service.apiService;