Skip to content

Commit eeea666

Browse files
author
zhuangtongfa
committed
improve docs
1 parent 404e939 commit eeea666

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README-EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ The browser will go to [http://localhost:8080](http://localhost:8080)
182182

183183
### multi-language
184184
In the [i18n.json](https://github.com/Binaryify/vue-tetris/blob/master/src/i18n.json)is the configuration for the multi-language environment. You can change the language by passing the url parameter `lan` like this: `https://Binaryify.github.io/vue-tetris/?lan=en`
185+
186+
`http://binaryify.github.io/vue-tetris/?lan=zh`
185187
### Build
186188
```
187189
npm run build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ npm run dev
189189
### 多语言
190190
[i18n.json](https://github.com/Binaryify/vue-tetris/blob/master/src/i18n.json) 配置多语言环境,使用"lan"参数匹配语言如:`https://Binaryify.github.io/vue-tetris/?lan=en`
191191

192+
`http://binaryify.github.io/vue-tetris/?lan=zh`
192193
### 打包编译
193194
```
194195
npm run build

src/app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ export default {
112112
const speedRun = this.$store.state.speedRun
113113
let timeout = speeds[speedRun - 1] / 2 // 继续时, 给予当前下落速度一半的停留时间
114114
// 停留时间不小于最快速的速度
115-
timeout = speedRun < speeds[speeds.length - 1]
116-
? speeds[speeds.length - 1]
117-
: speedRun
115+
timeout =
116+
speedRun < speeds[speeds.length - 1]
117+
? speeds[speeds.length - 1]
118+
: speedRun
118119
states.auto(timeout)
119120
}
120121

0 commit comments

Comments
 (0)