@@ -96,7 +96,8 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu }) => {
size="small"
className={styles.avatar}
src={
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') + (currentUser?.avatar ?? consts.DEFAULT_AVATAR)
+ (isDevMode() ? 'http://cld2qa.com' : 'http://localhost') +
+ (currentUser?.avatar ?? consts.DEFAULT_AVATAR)
}
alt="avatar"
/>
@@ -58,7 +58,7 @@ const UesrList: React.FC<UserListProps> = ({ onlineList }) => {
className="w-8 h-8 rounded-1/2 block"
style={{
backgroundImage: `url(${
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') +
(item.avatar ?? consts.DEFAULT_AVATAR)
})`,
backgroundSize: 'cover'
@@ -110,7 +110,7 @@ const NoticeIcon: React.FC<NoticeIconProps> & {
NoticeIcon.defaultProps = {
- emptyImage: (isDevMode() ? 'http://cld2qa.com' : 'localhost') + '/resource/notice_bell.png'
+ emptyImage: (isDevMode() ? 'http://cld2qa.com' : 'http://localhost') + '/resource/notice_bell.png'
NoticeIcon.Tab = NoticeList
@@ -118,7 +118,8 @@ export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, u
className="rounded-1/2 w-8 h-8"
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') + (item.avatar ?? consts.DEFAULT_AVATAR)
+ (item.avatar ?? consts.DEFAULT_AVATAR)
}}
@@ -23,11 +23,11 @@ const AddMessage = props => {
switch (values.media) {
case mediaType.VersionUpdate:
newValues.avatar =
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') + '/resource/notice_email.png'
+ (isDevMode() ? 'http://cld2qa.com' : 'http://localhost') + '/resource/notice_email.png'
break
case mediaType.HolidayNotice:
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') + '/resource/notice_airplane.png'
+ (isDevMode() ? 'http://cld2qa.com' : 'http://localhost') + '/resource/notice_airplane.png'
default:
@@ -148,7 +148,8 @@ const LockTabList: React.FC<LockTabListProps> = ({
@@ -51,7 +51,8 @@ const BaseView = () => {
initData()
}, [])
const avatar =
- (isDevMode() ? 'http://cld2qa.com' : 'localhost') + (staff?.avatar ?? '/resource/avatar/avtra_2.jpg')
+ (staff?.avatar ?? '/resource/avatar/avtra_2.jpg')
return (
<Tabs defaultActiveKey="1">
<TabPane tab="基本信息" key="1">