Skip to content

Commit

Permalink
Merge pull request #266 from sam80180/main
Browse files Browse the repository at this point in the history
fix: prevent disabled job's next trigger date parse error
  • Loading branch information
ZhouYixun authored Sep 22, 2023
2 parents 0abf750 + 88887e2 commit 23923f4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/lang/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ const jobsTS = {
},
addCron: 'Add a timed task',
whatCron: 'What is a Cron expression?',
cronNoNext: "N/A",
cronInfo: {
one: '* The first bit, indicating seconds, value range: 0-59',
two: '* The second bit, indicating minutes, value range: 0-59',
Expand Down
1 change: 1 addition & 0 deletions src/locales/lang/ja_JP.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ const jobsTS = {
},
addCron: '添加定时任务',
whatCron: '什么是Cron表达式?',
cronNoNext: "N/A",
cronInfo: {
one: '* 第一位,表示秒,取值 0-59',
two: '* 第二位,表示分,取值 0-59',
Expand Down
1 change: 1 addition & 0 deletions src/locales/lang/zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ const jobsTS = {
},
addCron: '添加定时任务',
whatCron: '什么是Cron表达式?',
cronNoNext: "N/A",
cronInfo: {
one: '* 第一位,表示秒,取值 0-59',
two: '* 第二位,表示分,取值 0-59',
Expand Down
1 change: 1 addition & 0 deletions src/locales/lang/zh_TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ const jobsTS = {
},
addCron: '新增排程任務',
whatCron: '什麼是Cron表達式?',
cronNoNext: "N/A",
cronInfo: {
one: '* 第一位,表示秒,取值 0-59',
two: '* 第二位,表示分,取值 0-59',
Expand Down
2 changes: 1 addition & 1 deletion src/views/Setting/SysJobs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ onMounted(() => {
prop="cronNext"
>
<template #default="scope">
{{ new Date(scope.row['cronNext']) }}
{{(scope.row["cronNext"] ? new Date(scope.row["cronNext"]) : $t("jobsTS.cronNoNext"))}}
</template>
</el-table-column>
<el-table-column :label="$t('common.operate')" width="150" align="center">
Expand Down

0 comments on commit 23923f4

Please sign in to comment.