Skip to content

Commit

Permalink
style: flex end
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Dec 8, 2023
1 parent b26c427 commit 7111c84
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
6 changes: 5 additions & 1 deletion src/modules/devops/services/devops.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export class DevopsService {

let loginUrl = '';
// v4.x、v5.x 版本的数栈
if (portalfront.includes('base4') || portalfront.includes('base5')) {
if (
portalfront.includes('base4') ||
portalfront.includes('base5') ||
portalfront.includes('beta5')
) {
loginUrl = str.split('uicfront:')?.[1]?.replace(/\n/g, '');
} else {
// v6.x 及以上版本的数栈
Expand Down
4 changes: 2 additions & 2 deletions src/utils/dingtalkRobot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ class DingtalkRobot {
isAtAll: false,
};
await robot.markdown(
`${process.env.NODE_ENV === 'staging' ? '【测试】' : ''}${title}`,
`${process.env.NODE_ENV === 'staging' ? '【测试服】' : ''}${title}`,
text,
at
);
console.log(
`${
process.env.NODE_ENV === 'staging' ? '【测试】' : ''
process.env.NODE_ENV === 'staging' ? '【测试服】' : ''
}taskId: ${taskId}, ${title}已发送`
);
} catch (error) {
Expand Down
18 changes: 8 additions & 10 deletions website/src/views/home/components/versionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@ export default function VersionModal(props: IProps) {
const footerRender = () => {
return (
<div className="footer-btn">
<div className="btn-box">
{isEdit && yiceRole === YICE_ROLE.ADMIN ? (
<Button danger onClick={handleDelete}>
删除
</Button>
) : null}
<Button onClick={onCancel}>取消</Button>
<Button type="primary" loading={saving || formLoading} onClick={handleOk}>
确定
{isEdit && yiceRole === YICE_ROLE.ADMIN ? (
<Button danger onClick={handleDelete}>
删除
</Button>
</div>
) : null}
<Button onClick={onCancel}>取消</Button>
<Button type="primary" loading={saving || formLoading} onClick={handleOk}>
确定
</Button>
</div>
);
};
Expand Down
4 changes: 1 addition & 3 deletions website/src/views/home/components/versionModal/style.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.footer-btn {
display: flex;
.btn-box {
flex: 1;
}
justify-content: flex-end;
}
2 changes: 2 additions & 0 deletions website/src/views/home/components/versions/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
}
.btn-box {
min-width: 208px;
display: flex;
justify-content: flex-end;
.ant-btn {
margin-left: 12px;
&:first-child {
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Home() {
<div className="logo-box">
<img src={getImgUrl('', '/logo.png')} alt="" onClick={handleClick} />
<div>
{process.env.NODE_ENV === 'staging' ? '【测试】' : ''}易测性能检测平台
{process.env.NODE_ENV === 'staging' ? '【测试服】' : ''}易测性能检测平台
</div>
</div>
<Search
Expand Down

0 comments on commit 7111c84

Please sign in to comment.