pull/9/head
tangjinzhou 2018-04-04 18:51:50 +08:00
parent 44b2c3a477
commit faf9b9b97d
2 changed files with 4 additions and 3 deletions

View File

@ -8,9 +8,9 @@ import { isZhCN } from '../util'
export default {
render () {
let { name } = this.$route.params
const { name } = this.$route.params
const lang = isZhCN(name) ? 'cn' : 'us'
name = name.replace('-cn', '')
// name = name.replace('-cn', '')
const titleMap = {}
const menuConfig = {
General: [],
@ -28,7 +28,7 @@ export default {
menuConfig[type] = menuConfig[type] || []
menuConfig[type].push(d)
}
const Demo = AllDemo[titleMap[name]]
const Demo = AllDemo[titleMap[name.replace('-cn', '')]]
const MenuGroup = []
for (const [type, menus] of Object.entries(menuConfig)) {
const MenuItems = []

View File

@ -39,3 +39,4 @@ export { default as slider } from 'antd/slider/demo/index.vue'
export { default as progress } from 'antd/progress/demo/index.vue'
export { default as timeline } from 'antd/timeline/demo/index.vue'
export { default as table } from 'antd/table/demo/index.vue'
export { default as inputNumber } from 'antd/input-number/demo/index.vue'