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