mirror of
https://github.com/Binaryify/vue-tetris.git
synced 2026-01-21 05:57:57 +08:00
improve docs
This commit is contained in:
@@ -182,6 +182,8 @@ The browser will go to [http://localhost:8080](http://localhost:8080)
|
|||||||
|
|
||||||
### multi-language
|
### 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`
|
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
|
### Build
|
||||||
```
|
```
|
||||||
npm run 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`
|
在 [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
|
npm run build
|
||||||
|
|||||||
@@ -112,9 +112,10 @@ export default {
|
|||||||
const speedRun = this.$store.state.speedRun
|
const speedRun = this.$store.state.speedRun
|
||||||
let timeout = speeds[speedRun - 1] / 2 // 继续时, 给予当前下落速度一半的停留时间
|
let timeout = speeds[speedRun - 1] / 2 // 继续时, 给予当前下落速度一半的停留时间
|
||||||
// 停留时间不小于最快速的速度
|
// 停留时间不小于最快速的速度
|
||||||
timeout = speedRun < speeds[speeds.length - 1]
|
timeout =
|
||||||
? speeds[speeds.length - 1]
|
speedRun < speeds[speeds.length - 1]
|
||||||
: speedRun
|
? speeds[speeds.length - 1]
|
||||||
|
: speedRun
|
||||||
states.auto(timeout)
|
states.auto(timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user