Skip to content

Commit

Permalink
Fixed compatibility bugs
Browse files Browse the repository at this point in the history
移除当没使用这些参数时,默认生成订阅后,强制附加的默认值 null,个别机场订阅会无法转换,因为附加了 exclued=null&include=null,在 MetaCubeX 魔改后端 、subconverter 官方上游后端最新 action commit 版本,转换时会触发不明的 has been ignored and will not be added,节点会全部被忽略,并且强制触发下载 header 行为
预期行为应该是在后端定义默认值和空值,不应该前端附加
  • Loading branch information
szkzn authored Jun 26, 2024
1 parent 57b62a6 commit 4af935f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/views/Subconverter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 +=
Expand Down

0 comments on commit 4af935f

Please sign in to comment.