mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
feat: 优化定时任务提示异常
This commit is contained in:
parent
6a2d42b4f5
commit
e8481aa72f
@ -157,7 +157,7 @@ const onSubmit = async () => {
|
||||
visible.value = false;
|
||||
emit('refresh');
|
||||
} catch (err: any) {
|
||||
useMessage().error('任务异常');
|
||||
useMessage().error('任务初始化异常');
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user