|
@ -197,6 +197,9 @@ export default { |
|
|
this.getPubKey() |
|
|
this.getPubKey() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
localStorage.removeItem('showHeader'); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 获取公钥 |
|
|
// 获取公钥 |
|
@ -207,7 +210,6 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.pubKey = res.data; // 获取到公钥; |
|
|
this.pubKey = res.data; // 获取到公钥; |
|
|
console.log("pubkey", this.pubKey); |
|
|
|
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@ -282,9 +284,7 @@ export default { |
|
|
const url = '/auth/govweb/login' |
|
|
const url = '/auth/govweb/login' |
|
|
this.dataForm.customerId = row.customerId |
|
|
this.dataForm.customerId = row.customerId |
|
|
|
|
|
|
|
|
console.log('password pre', this.dataForm.password); |
|
|
|
|
|
this.dataForm.password = this.encryptedData(this.pubKey, this.dataForm.password); |
|
|
this.dataForm.password = this.encryptedData(this.pubKey, this.dataForm.password); |
|
|
console.log('password after', this.dataForm.password); |
|
|
|
|
|
this.$http.post(url, this.dataForm).then(({data: res}) => { |
|
|
this.$http.post(url, this.dataForm).then(({data: res}) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
this.getCaptcha() |
|
|
this.getCaptcha() |
|
|