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