mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-07 22:17:34 +00:00
fix modal
This commit is contained in:
@@ -49,16 +49,14 @@ const { job, closeModal, onSubmit } = defineProps<{
|
|||||||
|
|
||||||
const alertStore = useAlertStore();
|
const alertStore = useAlertStore();
|
||||||
|
|
||||||
const formData = ref({});
|
const formData = ref();
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => job,
|
() => job,
|
||||||
(newJob) => {
|
(newJob) => {
|
||||||
if (newJob) {
|
|
||||||
formData.value = {
|
formData.value = {
|
||||||
cronExpression: newJob.cronExpression,
|
cronExpression: newJob?.cronExpression,
|
||||||
};
|
};
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user