mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-27 12:20:51 +08:00
Minor fix
This commit is contained in:
@@ -187,7 +187,13 @@ export default Vue.extend({
|
||||
|
||||
this.submitting = true;
|
||||
this.error = null;
|
||||
const files = this.files.length ? this.files : null;
|
||||
let files;
|
||||
if (this.files.length) {
|
||||
files = this.files;
|
||||
Vue.delete(this.userParams, 'urls');
|
||||
} else {
|
||||
files = null;
|
||||
}
|
||||
|
||||
try {
|
||||
const resp = await api.addTorrents(this.userParams, files);
|
||||
@@ -207,7 +213,7 @@ export default Vue.extend({
|
||||
|
||||
this.dialog = false;
|
||||
|
||||
this.userParams.urls = null;
|
||||
Vue.delete(this.userParams, 'urls');
|
||||
this.files = [];
|
||||
|
||||
this.$refs.form.resetValidation();
|
||||
|
||||
Reference in New Issue
Block a user