mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 01:16:56 +00:00
图片同步
未解决: 从本地获取
This commit is contained in:
17
public/js/app/launch.js
Normal file
17
public/js/app/launch.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 入口, 转发
|
||||
*/
|
||||
|
||||
// 服务器开启
|
||||
ServerService.start();
|
||||
|
||||
// 判断是否登录
|
||||
UserService.init(function(userInfo) {
|
||||
if(userInfo) {
|
||||
UserInfo = userInfo;
|
||||
location.href = 'note.html';
|
||||
} else {
|
||||
alert(2);
|
||||
location.href = 'login.html';
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user