修复BUG:

1.密码重置;
2.个人中心密码修改
This commit is contained in:
猿小天
2024-05-09 11:11:23 +08:00
parent a03b14a32d
commit 0d9ee1f4d4
4 changed files with 28 additions and 6 deletions

View File

@@ -182,6 +182,7 @@ import { useRouter } from 'vue-router';
import { useUserInfo } from '/@/stores/userInfo';
import { successMessage } from '/@/utils/message';
import {dictionary} from "/@/utils/dictionary";
import {Md5} from "ts-md5";
const router = useRouter();
// 头像裁剪组件
@@ -330,6 +331,7 @@ const passwordRules = reactive({
* 重新设置密码
*/
const settingPassword = () => {
console.log(Md5.hashStr('admin123456'))
userPasswordFormRef.value.validate((valid) => {
if (valid) {
api.UpdatePassword(userPasswordInfo).then((res: any) => {