mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
导航样式调整
This commit is contained in:
parent
6dcc242d98
commit
631496703c
@ -104,6 +104,7 @@ if (process.env.NODE_ENV === 'production') {
|
||||
const navigations = [
|
||||
Docs,
|
||||
{
|
||||
prefix: ({classnames: cx}) => <li className={cx('AsideNav-divider')} />,
|
||||
label: '示例',
|
||||
children: [
|
||||
{
|
||||
@ -535,8 +536,6 @@ const navigations = [
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
];
|
||||
|
||||
function isActive(link, location) {
|
||||
@ -897,10 +896,7 @@ export default function entry({pathPrefix}) {
|
||||
return (
|
||||
<Router history={history}>
|
||||
<Route component={App}>
|
||||
<Redirect
|
||||
from={`${ContextPath}/`}
|
||||
to={`${ContextPath}/docs/intro`}
|
||||
/>
|
||||
<Redirect from={`${ContextPath}/`} to={`${ContextPath}/docs/intro`} />
|
||||
<Redirect from={`${PathPrefix}/`} to={`/docs/intro`} />
|
||||
{navigations2route(PathPrefix)}
|
||||
<Route path="*" component={NotFound} />
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import makeMarkdownRenderer from './MdRenderer';
|
||||
|
||||
export default {
|
||||
prefix: ({classnames: cx}) => <li className={cx('AsideNav-divider')} />,
|
||||
// prefix: ({classnames: cx}) => <li className={cx('AsideNav-divider')} />,
|
||||
label: '文档',
|
||||
children: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user