mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 13:26:39 +08:00
v1.9 优化定时任务提示
This commit is contained in:
parent
980b2549f5
commit
7bd9ddc951
@ -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: '已提交任务,请稍后查看结果'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user