소스 검색

Merge pull request #174 from szkzn/Fix-default-null-value

Fixed compatibility bugs
Carey Wong 1 년 전
부모
커밋
0a130fc5d7
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/Subconverter.vue

+ 4 - 4
src/views/Subconverter.vue

@@ -408,19 +408,19 @@ export default {
         this.form.insert;
 
       if (this.advanced === "2") {
-        if (this.form.remoteConfig !== "") {
+        if (this.form.remoteConfig) {
           this.customSubUrl +=
             "&config=" + encodeURIComponent(this.form.remoteConfig);
         }
-        if (this.form.excludeRemarks !== "") {
+        if (this.form.excludeRemarks) {
           this.customSubUrl +=
             "&exclude=" + encodeURIComponent(this.form.excludeRemarks);
         }
-        if (this.form.includeRemarks !== "") {
+        if (this.form.includeRemarks) {
           this.customSubUrl +=
             "&include=" + encodeURIComponent(this.form.includeRemarks);
         }
-        if (this.form.filename !== "") {
+        if (this.form.filename) {
           this.customSubUrl +=
             "&filename=" + encodeURIComponent(this.form.filename);
         }