|
@@ -56,7 +56,7 @@
|
|
|
<script>
|
|
|
import { updatePwd } from "../api";
|
|
|
import { password } from "@/plugins/formRules";
|
|
|
-// import { AES } from "@/plugins/crypto";
|
|
|
+import { AES } from "@/plugins/crypto";
|
|
|
|
|
|
const initModalForm = {
|
|
|
id: "",
|
|
@@ -111,7 +111,12 @@ export default {
|
|
|
|
|
|
if (this.isSubmit) return;
|
|
|
this.isSubmit = true;
|
|
|
- const data = await updatePwd(this.resetModel).catch(() => {
|
|
|
+ const datas = {
|
|
|
+ id: this.resetModel.id,
|
|
|
+ password: AES(this.resetModel.password),
|
|
|
+ newPassword: AES(this.resetModel.newPassword)
|
|
|
+ };
|
|
|
+ const data = await updatePwd(datas).catch(() => {
|
|
|
this.isSubmit = false;
|
|
|
});
|
|
|
|