remove debug statements.
This commit is contained in:
parent
b08be6f8f0
commit
44b145270f
3 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue