|
@@ -62,6 +62,10 @@ export default {
|
|
|
Toast('请输入登录名');
|
|
|
return;
|
|
|
}
|
|
|
+ const regex = /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B-\u200F\u202A-\u202E\u2028\u2029\uFEFF]/g;
|
|
|
+ this.password = this.password.replaceAll(regex,'')
|
|
|
+ this.name = this.name.replaceAll(regex,'')
|
|
|
+
|
|
|
// this.$http.post(this.$store.state.host + "/appSysUser/employee_login", { account: this.name, password: this.password }, { emulateJSON: true })
|
|
|
const res = await employee_login({ account: this.name, password: this.password }, { emulateJSON: true })
|
|
|
console.log("=====", res)
|