|
@@ -198,6 +198,7 @@ export default {
|
|
|
sysId: null,
|
|
sysId: null,
|
|
|
systemType: "1", //系统类型
|
|
systemType: "1", //系统类型
|
|
|
addressInfo: {}, //当前登录信息
|
|
addressInfo: {}, //当前登录信息
|
|
|
|
|
+ locationIp:'',//当前ip
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -326,7 +327,8 @@ export default {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
let userId = sessionStorage.getItem("user");
|
|
let userId = sessionStorage.getItem("user");
|
|
|
let data = {
|
|
let data = {
|
|
|
- ...this.addressInfo,
|
|
|
|
|
|
|
+ // ...this.addressInfo,
|
|
|
|
|
+ ip:this.locationIp,
|
|
|
userId,
|
|
userId,
|
|
|
systemType: this.systemType,
|
|
systemType: this.systemType,
|
|
|
};
|
|
};
|
|
@@ -505,9 +507,10 @@ export default {
|
|
|
this.refreshCaptcha();
|
|
this.refreshCaptcha();
|
|
|
/**获取当前登录的ip地址 */
|
|
/**获取当前登录的ip地址 */
|
|
|
getUserIP((ip) => {
|
|
getUserIP((ip) => {
|
|
|
- getAddressLocation(ip, (info) => {
|
|
|
|
|
- this.addressInfo = info;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.locationIp=ip
|
|
|
|
|
+ // getAddressLocation(ip, (info) => {
|
|
|
|
|
+ // this.addressInfo = info;
|
|
|
|
|
+ // });
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|