improve docs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user