|
@@ -359,6 +359,12 @@ export default {
|
|
|
console.log("res", res);
|
|
|
let _data = res.data[0][0];
|
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
|
+ if (userjson.data[0][0].type == 2) {
|
|
|
+ this.loading = false;
|
|
|
+ this.$message.error('无登录权限');
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
console.log("userjson", userjson);
|
|
|
if (_data.active === 1) {
|
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
@@ -420,6 +426,12 @@ export default {
|
|
|
console.log("res", res);
|
|
|
let _data = res.data[0][0];
|
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
|
+ if (userjson.data[0][0].type == 2) {
|
|
|
+ this.loading = false;
|
|
|
+ this.$message.error('无登录权限');
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
console.log("userjson", userjson);
|
|
|
if (_data.active === 1) {
|
|
|
await this.$ajax.post(API_CONFIG.baseUrl2 + "UpdateOpenId", [
|
|
@@ -659,6 +671,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
|
+ if (userjson.data[0][0].type == 2) {
|
|
|
+ this.$message.error('无登录权限');
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
console.log("userjson", userjson);
|
|
|
if (_data.active === 1) {
|
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|