feat: 优化定时任务提示异常

This commit is contained in:
lbw 2023-07-12 16:20:52 +08:00
parent 6a2d42b4f5
commit e8481aa72f
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ const onSubmit = async () => {
visible.value = false;
emit('refresh');
} catch (err: any) {
useMessage().error('任务异常');
useMessage().error('任务初始化异常');
} finally {
loading.value = false;
}

View File

@ -255,7 +255,7 @@ const handleRunJob = async (row) => {
getDataList();
useMessage().success(t('common.optSuccessText'));
} catch (err: any) {
useMessage().error(err.msg);
useMessage().error('运行失败');
}
};
@ -278,7 +278,7 @@ const handleDelete = async (row) => {
getDataList();
useMessage().success(t('common.delSuccessText'));
} catch (error: any) {
useMessage().error(error.msg);
useMessage().error('删除失败');
}
};
</script>