mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 07:04:39 +03:00
1 parent
438bb09dda
commit
6706c682d5
1 file changed
+6
-1
@@ -169,7 +169,12 @@ const getHelpers = computed(() => {
|
|||||||
|
|
||||||
const cronString = computed(() => {
|
const cronString = computed(() => {
|
||||||
if (isCronValid(cron.value)) {
|
if (isCronValid(cron.value)) {
|
||||||
return cronstrue.toString(cron.value, cronstrueConfig);
|
try {
|
||||||
|
return cronstrue.toString(cron.value, cronstrueConfig);
|
||||||
|
}
|
||||||
|
catch (e: any) {
|
||||||
|
return e.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ' ';
|
return ' ';
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user