login.html不能通过window.open, 不然会有问题

This commit is contained in:
life
2015-03-06 01:55:47 +08:00
parent 0e6fc7ac2b
commit fe29869cc8
11 changed files with 36 additions and 27 deletions

View File

@@ -1559,9 +1559,11 @@ function userMenu() {
this.switchAccount = new gui.MenuItem({
label: 'Switch account',
click: function(e) {
window.open('login.html');
win.close();
// location.href = 'login.html';
// window.open('login.html');
// win.close();
// 这样, 不能window.open(), 不然needle有问题
location.href = 'login.html';
}
});
this.theme = new gui.MenuItem({