Commit 1c9ea76e authored by xuchaozou's avatar xuchaozou

chore: 优化配置读取logo

parent 40688c60
Pipeline #87683 passed with stages
...@@ -31,6 +31,10 @@ const TieShanLogin = forwardRef((props, _ref) => { ...@@ -31,6 +31,10 @@ const TieShanLogin = forwardRef((props, _ref) => {
() => () =>
new LoginAction(Object.assign({}, props, { history }), setVisible, false), new LoginAction(Object.assign({}, props, { history }), setVisible, false),
); );
const logoImage =
props?.global?.logo?.indexOf('CityTemp') > -1
? props?.global?.logo
: `civweb4/${props?.global?.logo}`;
const handleSubmit = values => { const handleSubmit = values => {
/* eslint-disable */ /* eslint-disable */
...@@ -169,7 +173,7 @@ const TieShanLogin = forwardRef((props, _ref) => { ...@@ -169,7 +173,7 @@ const TieShanLogin = forwardRef((props, _ref) => {
<div className={styles['login-header']}> <div className={styles['login-header']}>
<div className={styles['left-title']}> <div className={styles['left-title']}>
<div> <div>
<img src={logo} /> <img src={`${window.location.origin}/${logoImage}`} />
</div> </div>
<div className={styles['cn-title']}>{props.global.title || "临洮县水务投资有限责任公司智慧供排一体化平台"}</div> <div className={styles['cn-title']}>{props.global.title || "临洮县水务投资有限责任公司智慧供排一体化平台"}</div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment