diff --git a/site/components/demo.vue b/site/components/demo.vue
index 8da74a971..a50c189ce 100644
--- a/site/components/demo.vue
+++ b/site/components/demo.vue
@@ -40,7 +40,7 @@ export default {
currentSubMenu.forEach(({ cnTitle, usTitle, id }) => {
const title = isCN ? cnTitle : usTitle
const className = window.location.hash === `#${id}` ? 'current' : ''
- lis.push(
{title})
+ lis.push({title})
})
return (
diff --git a/site/components/demoBox.vue b/site/components/demoBox.vue
index d1bd6519c..95fcd5b1c 100644
--- a/site/components/demoBox.vue
+++ b/site/components/demoBox.vue
@@ -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 {