将当前客户端类型进行登录传值

master
学习很差啦 2022-11-09 17:36:36 +08:00
parent 4625c087d5
commit 7b9b5c2819
1 changed files with 3 additions and 3 deletions

View File

@ -204,6 +204,7 @@
}, },
mounted() { mounted() {
// #ifndef APP-PLUS // #ifndef APP-PLUS
// //
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
@ -657,9 +658,8 @@
const params = JSON.parse(JSON.stringify(this.userData)); const params = JSON.parse(JSON.stringify(this.userData));
params.password = md5(params.password); params.password = md5(params.password);
try { try {
let res = await userLogin(params); let res = await userLogin(params,this.clientType);
if (res.data.success) { if (res.data.success) {
console.log("zhixing ")
this.getUserInfoMethods(res); this.getUserInfoMethods(res);
} else { } else {
this.$refs.verification.getCode(); this.$refs.verification.getCode();