Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhongxue committed Sep 22, 2024
1 parent 80a227b commit 6ebb74d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/views/Cron.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ const mutate = async () => {
cronDouban: formState.value
});
} else {
await doubanCoreApiClient.cronDouban.createCronDouban({
const { data: createCronDouban } = await doubanCoreApiClient.cronDouban.createCronDouban({
cronDouban: formState.value
});
formState.value = createCronDouban
}
} finally {
saving.value = false;
Expand All @@ -91,7 +92,7 @@ const mutate = async () => {
onMounted(async () => {
const {data: data} = await doubanCoreApiClient.cronDouban.listCronDouban();
let items = data.items;
const items = data.items;
if (items?.length){
formState.value = items[0]
}
Expand Down

0 comments on commit 6ebb74d

Please sign in to comment.