|
|
|
@ -53,11 +53,11 @@ export default {
|
|
|
|
|
`not have usTitle`,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
let id = ['components', name.replace('-cn', ''), 'demo', ...usTitle.split(' ')].join('-').toLowerCase()
|
|
|
|
|
const id = ['components', name.replace('-cn', ''), 'demo', ...usTitle.split(' ')].join('-').toLowerCase()
|
|
|
|
|
|
|
|
|
|
if (this._store.store) {
|
|
|
|
|
const { currentSubMenu } = this._store.store.getState()
|
|
|
|
|
id = `${id}-${currentSubMenu.length + 1}`
|
|
|
|
|
// id = `${id}-${currentSubMenu.length + 1}`
|
|
|
|
|
this._store.store.setState({ currentSubMenu: [...currentSubMenu, { cnTitle, usTitle, id }] })
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|