Skip to content

Commit 42fc166

Browse files
author
root
committed
add preview gif
1 parent 74cd8be commit 42fc166

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README-EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Not only refers to the screen adaptation, `but the change of input depending on
2121
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.
2222

2323
### Vuex state preview ([Vue DevTools extension](https://github.com/vuejs/vue-devtools))
24+
![preview](http://7xkm8j.com1.z0.glb.clouddn.com/vuex.gif)
25+
2426
[video](https://www.youtube.com/watch?v=iuoSSTqSAUE)
2527

2628
Vuex manages all the state that should be stored, which is a guarantee to be persisted as mentioned above.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Please view [README.md](https://github.com/Binaryify/vue-tetris/blob/master/READ
2828
玩单机游戏最怕什么?断电。通过订阅 `store.subscribe`,将state储存在localStorage,精确记录所有状态。网页关了刷新了、程序崩溃了、手机没电了,重新打开连接,都可以继续。
2929

3030
### Vuex 状态预览([Vue DevTools extension](https://github.com/vuejs/vue-devtools)
31+
![preview](http://7xkm8j.com1.z0.glb.clouddn.com/vuex.gif)
32+
3133
[视频](http://7xkm8j.com1.z0.glb.clouddn.com/vuex.mp4)
3234

3335
Vuex 设计管理了所有应存的状态,这是上面持久化的保证。

0 commit comments

Comments
 (0)