v1.9 优化定时任务提示

This commit is contained in:
wuxw 2025-11-14 12:43:49 +08:00
parent 980b2549f5
commit 7bd9ddc951
2 changed files with 7 additions and 5 deletions

View File

@ -56,7 +56,8 @@ export const messages = {
},
fetchError: 'Failed to fetch task list',
start: 'start',
stop: 'stop'
stop: 'stop',
timeout: 'Submitted task, please check the result later'
}
},
zh: {
@ -116,7 +117,8 @@ export const messages = {
},
fetchError: '获取定时任务列表失败',
start: '启动',
stop: '停止'
stop: '停止',
timeout: '已提交任务,请稍后查看结果'
}
}
}

View File

@ -118,7 +118,7 @@ export default {
await startTask(row.taskId)
this.getList()
} catch (error) {
this.$message.error(this.$t('task.fetchError'))
this.$message.error(error)
} finally {
this.loading = false
}
@ -129,7 +129,7 @@ export default {
await stopTask(row.taskId)
this.getList()
} catch (error) {
this.$message.error(this.$t('task.fetchError'))
this.$message.error(error)
} finally {
this.loading = false
}
@ -155,7 +155,7 @@ export default {
await runTask(row.taskId)
this.getList()
} catch (error) {
this.$message.error(this.$t('task.fetchError'))
this.$message.error(this.$t('task.timeout'))
} finally {
this.loading = false
}