forked from opentiny/tiny-vue
fix(sites): not display types anchor when doc has not types (#969)
This commit is contained in:
parent
9b4b1d4eb7
commit
2cf5289e63
|
@ -167,7 +167,10 @@ export default defineComponent({
|
|||
link: `#${demo.demoId}`
|
||||
})) || []
|
||||
if (state.currJson?.apis?.length) {
|
||||
links.push({ key: 'API', title: 'API', link: '#API' }, { key: 'Types', title: 'Types', link: '#types' })
|
||||
links.push({ key: 'API', title: 'API', link: '#API' })
|
||||
}
|
||||
if (state.currJson?.types?.length) {
|
||||
links.push({ key: 'types', title: 'types', link: '#types' })
|
||||
}
|
||||
if (state.cmpFAQMd) {
|
||||
links.push({
|
||||
|
|
Loading…
Reference in New Issue