diff --git a/ui/components/History.vue b/ui/components/History.vue index c65e70e2..908aed1c 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -463,7 +463,6 @@ const hasDownloaded = computed(() => { for (const key in stateStore.history) { const element = stateStore.history[key] if (element.status === 'finished' && element.filename) { - console.log(element); return true } } diff --git a/ui/components/NewDownload.vue b/ui/components/NewDownload.vue index 4719e276..58084dd5 100644 --- a/ui/components/NewDownload.vue +++ b/ui/components/NewDownload.vue @@ -187,7 +187,7 @@ const toast = useToast() const showAdvanced = useStorage('show_advanced', false) const addInProgress = ref(false) -const form = useStorage('local_config', { +const form = useStorage('local_config_v1', { id: null, url: '', preset: config.app.default_preset, @@ -242,6 +242,7 @@ const resetConfig = () => { cli: '', template: '', folder: '', + extras: {}, } showAdvanced.value = false @@ -304,9 +305,12 @@ onMounted(async () => { if (props?.item) { Object.keys(props.item).forEach(key => { - console.log(key, form.value[key], props.item[key]) if (key in form.value) { - form.value[key] = props.item[key] + let value = props.item[key] + if ('extras' === key) { + value = JSON.parse(JSON.stringify(props.item[key])) + } + form.value[key] = value } }) emitter('clear_form'); diff --git a/ui/components/TaskForm.vue b/ui/components/TaskForm.vue index 67b0504b..2694803b 100644 --- a/ui/components/TaskForm.vue +++ b/ui/components/TaskForm.vue @@ -276,7 +276,7 @@ const checkInfo = async () => { try { CronExpressionParser.parse(form.timer); } catch (e) { - console.log(e) + console.error(e) toast.error(`Invalid CRON expression. ${e.message}`); return; }