Esempio n. 1
0
 handler: function(){
   store.save({
     user: this.user,
     userList: this.userList,
     sessionList: this.sessionList
   });
 }
Esempio n. 2
0
    data: function() {
      var serverData = store.fetch();

      return {
        // 登录用户
        user: serverData.user,
        // 用户列表
        userList: serverData.userList,
        // 会话列表
        sessionList: serverData.sessionList,
        // 搜索key
        search: '',
        // 选中的会话
        sessionIndex: 0
      };
    },