导入与路由参数隐藏

This commit is contained in:
李志强 2023-12-28 17:52:04 +08:00
parent 1cedf4a53e
commit d22a920b1b
2 changed files with 151 additions and 0 deletions

View File

@ -13,9 +13,11 @@ import { history, Link } from 'umi';
import { BookOutlined, LinkOutlined } from '@ant-design/icons';
import defaultSettings from '../config/defaultSettings';
import iconStyle from '../public/樽海鞘_图案.svg';
import './modelstyle.css';
import { getRoutersInfo, getUserInfo } from './services/session';
const isDev = process.env.NODE_ENV === 'development';
const loginPath = '/user/login';
/** 获取用户信息比较慢的时候会展示一个 loading */
export const initialStateConfig = {
loading: <PageLoading />,

149
src/modelstyle.css Normal file
View File

@ -0,0 +1,149 @@
body .ant-layout{
background: #fff;
}
/*ant-btn*/
body .ant-btn:focus,
body .ant-btn:hover {
color: #2B50C4;
border-color: #2B50C4;
background: #fff;
}
body .ant-btn:active {
color:#042281;
border-color:#042281;
background:#fff
}
body .ant-btn-primary {
color: #fff;
border-color: #233A82;
background: #233A82;
}
body .ant-btn-primary:focus,
body .ant-btn-primary:hover {
color: #fff;
border-color: #2B50C4;
background: #2B50C4;
}
body .ant-btn-primary:active {
color: #fff;
border-color: #042281;
background: #042281;
}
html {
--antd-wave-shadow-color:#233A82 !important;
}
body .ant-input:hover {
border-color: #233A82;
}
body .ant-input-affix-wrapper-focused,
body .ant-input-affix-wrapper:focus {
border-color:#233A82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,
body .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,
body .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper-focused,
body .ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper:hover {
border-right-color:#233A82;
}
body .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
border-color: #233A82;
}
body .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
border-color: #233A82;
}
body .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector,
body .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector,
body .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
border-color:#233A82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-group-addon .ant-select-focused .ant-select-selector,
body .ant-input-group-addon .ant-select-open .ant-select-selector {
color:#233A82;
}
body .namediv:hover {
color: #233A82;
}
body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
color: #1d2129;
background: #e9ecf4;
}
body .ant-select-item-option-selected:hover{
background: #e9ecf4;
}
body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state {
color: #233a82;
}
body .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,
body .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-affix-wrapper-focused,
body .ant-input-affix-wrapper:focus {
border-color:#233a82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-focused,
body .ant-input:focus {
border-color:#233a82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-pagination-options-quick-jumper input-focused,
body .ant-pagination-options-quick-jumper input:focus {
border-color:#233a82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-pagination-simple .ant-pagination-simple-pager input:focus {
border-color:#233a82;
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,
body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus {
box-shadow:0 0 0 2px rgba(35, 58, 130, .2);
}
body .spandes:hover{
color:#233a82;
}
body .cardstyle:hover .deletestyle:hover {
color: #233a82;
}
body .ant-pagination-item-active {
border-color: #233a82;
}
body .ant-pagination-item:hover a {
color: #233a82;
}
body .ant-pagination-item:hover {
border-color: #233a82;
}
body .ant-pagination-next:hover .ant-pagination-item-link,
body .ant-pagination-prev:hover .ant-pagination-item-link {
color: #233a82;
border-color: #233a82;
}