なんかもうめっちゃ変えた
This commit is contained in:
parent
cd6b681748
commit
5da436a285
10 changed files with 31 additions and 49 deletions
|
|
@ -67,6 +67,11 @@ module.exports = callback => {
|
|||
if (me != null) {
|
||||
riot.observable(me);
|
||||
|
||||
me.update = data => {
|
||||
if (data) Object.assign(me, data);
|
||||
me.trigger('updated');
|
||||
};
|
||||
|
||||
if (me.data.cache) {
|
||||
localStorage.setItem('me', JSON.stringify(me));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue