|
@@ -286,9 +286,9 @@ export default {
|
|
console.log("userjson", userjson);
|
|
console.log("userjson", userjson);
|
|
if (_data.active === 1) {
|
|
if (_data.active === 1) {
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
- this.addOp3('1', "", { type:this.prefixL + "login" }, "success")
|
|
|
|
this.$message.success("登录成功");
|
|
this.$message.success("登录成功");
|
|
await this.login();
|
|
await this.login();
|
|
|
|
+ this.addOp3('1', "", { type:this.prefixL + "login" }, "success",_data.userid)
|
|
if (
|
|
if (
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
@@ -299,7 +299,6 @@ export default {
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.addOp3('1', "", { type:this.prefixL + "login" }, '登录失败')
|
|
|
|
this.$message.error("登录失败");
|
|
this.$message.error("登录失败");
|
|
}
|
|
}
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -310,7 +309,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message.error("登录失败");
|
|
this.$message.error("登录失败");
|
|
}
|
|
}
|
|
- this.addOp3('1', "", { type:this.prefixL + "login" }, e)
|
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
} else if (this.loginType == "bind") {
|
|
} else if (this.loginType == "bind") {
|
|
@@ -562,9 +560,9 @@ export default {
|
|
console.log("userjson", userjson);
|
|
console.log("userjson", userjson);
|
|
if (_data.active === 1) {
|
|
if (_data.active === 1) {
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
- this.addOp3('1', "", { type:this.prefixL + "login" }, "success")
|
|
|
|
this.$message.success("登录成功");
|
|
this.$message.success("登录成功");
|
|
await this.login();
|
|
await this.login();
|
|
|
|
+ this.addOp3('1', "", { type:this.prefixL + "login" }, "success",_data.userid)
|
|
if (
|
|
if (
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
@@ -575,8 +573,6 @@ export default {
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.addOp3('1', "", { type:this.prefixL + "login" }, '登录失败')
|
|
|
|
-
|
|
|
|
this.$message.error("登录失败");
|
|
this.$message.error("登录失败");
|
|
}
|
|
}
|
|
|
|
|