feat(1.5.0-beta1): 增加websocket获取重试任务日志
This commit is contained in:
parent
a457eb9a51
commit
1cfb4c8f8e
@ -232,7 +232,14 @@ watch(
|
||||
finished.value = false;
|
||||
controller = new AbortController();
|
||||
if (props.fetchType === 'ws') {
|
||||
const url = initWebSocketUrl('JOB_LOG_SCENE', props.taskData.id);
|
||||
let url: string | null = '';
|
||||
if (props.type === 'job') {
|
||||
url = initWebSocketUrl('JOB_LOG_SCENE', props.taskData.id);
|
||||
}
|
||||
if (props.type === 'retry') {
|
||||
url = initWebSocketUrl('RETRY_LOG_SCENE', props.taskData.id);
|
||||
}
|
||||
|
||||
if (!url) {
|
||||
window.$message?.error('Token 失效');
|
||||
visible.value = false;
|
||||
|
@ -59,6 +59,7 @@ const visible = defineModel<boolean>('visible', {
|
||||
{{ rowData?.responseVO?.argsStr }}
|
||||
</NDescriptionsItem>
|
||||
<NDescriptionsItem :label="$t('common.createDt')">{{ rowData?.createDt }}</NDescriptionsItem>
|
||||
<NDescriptionsItem :label="$t('common.updateDt')">{{ rowData?.updateDt }}</NDescriptionsItem>
|
||||
</NDescriptions>
|
||||
</NTabPane>
|
||||
<NTabPane :name="1" :tab="$t('page.log.title')" display-directive="if">
|
||||
|
Loading…
Reference in New Issue
Block a user