Skip to content

Commit

Permalink
fix: 修复搜索是父级路由无法跳转时不应该新开tab,导致内容区白屏
Browse files Browse the repository at this point in the history
修复搜索是父级路由无法跳转时不应该新开tab,导致内容区白屏

Co-Authored-By: yunzhicai <[email protected]>
  • Loading branch information
jeryqwq and yunzhicai committed Feb 20, 2023
1 parent 57133d8 commit 8bfd32e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/layouts/base/ContentSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default () => {
key={i.key}
className={styles['menu-item']}
onClick={() => {
i.path && history.push(i.path);
if (!i.routes) {
i.path && history.push(i.path);
}
selectRef.current.blur?.();
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default () => {
size: 'large',
prefix: <LockOutlined className={'prefixIcon'} />,
}}
placeholder={'密码: proapp'}
placeholder={'密码: proapp or 123456'}
rules={[
{
required: true,
Expand Down
4 changes: 1 addition & 3 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Guide from '@/components/Guide';
import { useModel } from '@umijs/max';
import styles from './index.module.less';
import { Workspace } from '@vis/common';
import { Button } from 'antd';
import styles from './index.module.less';
import Space1 from './Space1';
import Space2 from './Space2';
const HomePage: React.FC = (props) => {
Expand Down

0 comments on commit 8bfd32e

Please sign in to comment.