update README-EN.MD

This commit is contained in:
root
2017-06-15 23:49:22 +08:00
parent b2c4051328
commit b1b1966e9f

View File

@@ -16,12 +16,12 @@ Not only refers to the screen adaptation, `but the change of input depending on
### Data persistence
[video](https://www.youtube.com/edit?o=U&video_id=SzTNX7rg9Qg)
[video](https://www.youtube.com/watch?v=SzTNX7rg9Qg)
What's the worst can happen when you're playing stand-alone games? Power outage. The state is stored in the `localStorage` by subscribing to `store.subscribe`, which records exactly all the state. Web page refreshes, the program crashes, the phone is dead, just re-open the connection and you can continue playing.
### Vuex state preview ([Vue DevTools extension](https://github.com/vuejs/vue-devtools))
[video](https://www.youtube.com/edit?o=U&video_id=iuoSSTqSAUE)
[video](https://www.youtube.com/watch?v=iuoSSTqSAUE)
Vuex manages all the state that should be stored, which is a guarantee to be persisted as mentioned above.