1
0
mirror of synced 2025-11-06 04:30:39 +08:00

improve docs

This commit is contained in:
zhuangtongfa
2017-07-20 16:08:14 +08:00
parent 404e939049
commit eeea666ba3
3 changed files with 7 additions and 3 deletions

View File

@@ -182,6 +182,8 @@ The browser will go to [http://localhost:8080](http://localhost:8080)
### multi-language
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`
`http://binaryify.github.io/vue-tetris/?lan=zh`
### Build
```
npm run build

View File

@@ -189,6 +189,7 @@ npm run dev
### 多语言
在 [i18n.json](https://github.com/Binaryify/vue-tetris/blob/master/src/i18n.json) 配置多语言环境,使用"lan"参数匹配语言如:`https://Binaryify.github.io/vue-tetris/?lan=en`
`http://binaryify.github.io/vue-tetris/?lan=zh`
### 打包编译
```
npm run build

View File

@@ -112,7 +112,8 @@ export default {
const speedRun = this.$store.state.speedRun
let timeout = speeds[speedRun - 1] / 2 // 继续时, 给予当前下落速度一半的停留时间
// 停留时间不小于最快速的速度
timeout = speedRun < speeds[speeds.length - 1]
timeout =
speedRun < speeds[speeds.length - 1]
? speeds[speeds.length - 1]
: speedRun
states.auto(timeout)