Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 3dcb85d

Browse files
committed
style: remove invalid code
1 parent 073f7c5 commit 3dcb85d

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

components.d.ts

-5
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,18 @@ declare module 'vue' {
2929
AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'];
3030
ALayout: typeof import('@arco-design/web-vue')['Layout'];
3131
ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'];
32-
ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'];
3332
ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'];
3433
ALink: typeof import('@arco-design/web-vue')['Link'];
35-
AList: typeof import('@arco-design/web-vue')['List'];
36-
AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'];
3734
AMenu: typeof import('@arco-design/web-vue')['Menu'];
3835
AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'];
3936
AModal: typeof import('@arco-design/web-vue')['Modal'];
4037
AOption: typeof import('@arco-design/web-vue')['Option'];
4138
APagination: typeof import('@arco-design/web-vue')['Pagination'];
4239
AProgress: typeof import('@arco-design/web-vue')['Progress'];
43-
ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'];
4440
AResult: typeof import('@arco-design/web-vue')['Result'];
4541
ASelect: typeof import('@arco-design/web-vue')['Select'];
4642
ASpace: typeof import('@arco-design/web-vue')['Space'];
4743
ASpin: typeof import('@arco-design/web-vue')['Spin'];
48-
AStatistic: typeof import('@arco-design/web-vue')['Statistic'];
4944
ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'];
5045
ASwitch: typeof import('@arco-design/web-vue')['Switch'];
5146
ATable: typeof import('@arco-design/web-vue')['Table'];

src/locale/en-US/common.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ export default {
151151
'common.social.discord': 'Join Our Discord',
152152
'common.table.mark': 'Comment',
153153
'common.table.rollback.mark': 'Rollback Comment',
154-
'common.button.saveDeploy': 'Save and Deploy',
155-
'common.button.savePreview': 'Save and Preview',
154+
'common.button.saveDeploy': 'Save & Deploy',
155+
'common.button.savePreview': 'Save & Preview',
156156
'common.button.rollbackPreview': 'Rollback Preview',
157157
'common.button.deployPreview': 'Deployment Preview',
158158
'common.button.draft': 'Save Draft',

src/views/application-management/services/components/runs/detail-modal/run-logs.vue

+6-17
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,10 @@
3636
}
3737
return props.fullscreen ? 'calc(100vh - 320px)' : '310px';
3838
});
39-
watch(
40-
() => props.runData,
41-
(newVal) => {
42-
if (newVal) {
43-
console.log(
44-
'props.rundata.status=======',
45-
props.runData?.status?.summaryStatus
46-
);
47-
}
48-
},
49-
{
50-
immediate: true,
51-
deep: true
52-
}
53-
);
39+
40+
const runStatus = computed(() => {
41+
return props.runData?.status?.summaryStatus;
42+
});
5443
5544
const renderStaticLogs = () => {
5645
if (props.runData?.record) {
@@ -85,7 +74,7 @@
8574
fullscreen={props.fullscreen}
8675
runData={props.runData}
8776
key={
88-
props.runData?.status?.summaryStatus === RevisionStatus.Running
77+
runStatus.value === RevisionStatus.Running
8978
? 'running'
9079
: 'planning'
9180
}
@@ -96,7 +85,7 @@
9685
9786
return () => (
9887
<div class="logs-box">
99-
{RevisionWatchStatus.includes(props.runData?.status?.summaryStatus)
88+
{RevisionWatchStatus.includes(runStatus.value)
10089
? renderWatchLogs()
10190
: renderStaticLogs()}
10291
</div>

0 commit comments

Comments
 (0)