deason 1 년 전
부모
커밋
9c4b5d355d
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      src/main/resources/templates/login.ftlh

+ 7 - 1
src/main/resources/templates/login.ftlh

@@ -49,7 +49,7 @@
         methods: {
             doLogin() {
                 let url = "${base}/login?domain=" + this.domain + ".ecs.qmth.com.cn&loginName="
-                    + this.loginName + "&password=" + this.password;
+                    + this.encodeStr(this.loginName) + "&password=" + this.encodeStr(this.password);
 
                 axios.post(url).then((response) => {
                     this.$notify({
@@ -64,6 +64,12 @@
                         type: "error",
                     });
                 });
+            },
+            encodeStr(value) {
+                if (value) {
+                    return encodeURIComponent(value);
+                }
+                return "";
             }
         }
     });