|
@@ -76,7 +76,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submit:debounce(function(){
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
+ this.$refs["form"].validate(async valid => {
|
|
|
if (valid) {
|
|
|
// 密码验证规则
|
|
|
if (this.sameReg.test(this.pwd.newPassword)) {
|
|
@@ -110,6 +110,14 @@ export default {
|
|
|
this.$message.error('密码不满足8~20位大写字母、小写字母、数字、特殊字符三种以上的组合')
|
|
|
return
|
|
|
}
|
|
|
+ let sysTime
|
|
|
+ let lk
|
|
|
+ await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
|
+ sysTime = res.data.sysTime
|
|
|
+ lk = res.data.lk
|
|
|
+ }).catch((error) => {
|
|
|
+ })
|
|
|
+
|
|
|
// 用户信息解密
|
|
|
let decryptUserInfo = userinfoDecrypt(sessionStorage.getItem('active'))
|
|
|
this.user = JSON.parse(decryptUserInfo).sysUser
|
|
@@ -117,9 +125,11 @@ export default {
|
|
|
id: this.user.id,
|
|
|
oldPassword: this.pwd.oldPassword,
|
|
|
newPassword: this.pwd.newPassword,
|
|
|
- confirmPassword: this.pwd.confirmPassword
|
|
|
+ confirmPassword: this.pwd.confirmPassword,
|
|
|
+ sysTime: sysTime,
|
|
|
+ lk: lk
|
|
|
}
|
|
|
- this.$axios.post('/sysUserController/updatePassword', param).then((res) => {
|
|
|
+ await this.$axios.post('/sysUserController/updatePassword', param).then((res) => {
|
|
|
if (res.code==0){
|
|
|
this.$message.success('密码修改成功')
|
|
|
this.pwdReset()
|