diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue index e2fac9aee..b93588ce0 100644 --- a/src/views/Subconverter.vue +++ b/src/views/Subconverter.vue @@ -408,21 +408,17 @@ export default { this.form.insert; if (this.advanced === "2") { - if (this.form.remoteConfig !== "") { - this.customSubUrl += - "&config=" + encodeURIComponent(this.form.remoteConfig); + if (this.form.remoteConfig) { + this.customSubUrl += "&config=" + encodeURIComponent(this.form.remoteConfig); } - if (this.form.excludeRemarks !== "") { - this.customSubUrl += - "&exclude=" + encodeURIComponent(this.form.excludeRemarks); + if (this.form.excludeRemarks) { + this.customSubUrl += "&exclude=" + encodeURIComponent(this.form.excludeRemarks); } - if (this.form.includeRemarks !== "") { - this.customSubUrl += - "&include=" + encodeURIComponent(this.form.includeRemarks); + if (this.form.includeRemarks) { + this.customSubUrl += "&include=" + encodeURIComponent(this.form.includeRemarks); } - if (this.form.filename !== "") { - this.customSubUrl += - "&filename=" + encodeURIComponent(this.form.filename); + if (this.form.filename) { + this.customSubUrl += "&filename=" + encodeURIComponent(this.form.filename); } if (this.form.appendType) { this.customSubUrl +=