feat:对接了修改密码接口

This commit is contained in:
KindSeven
2024-09-25 20:10:26 +08:00
parent aac2d52bcc
commit 03e57d8ee2
3 changed files with 7 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ export const modifyUser=(data)=>{
} }
export const editPassword=(data)=>{ export const editPassword=(data)=>{
return request({ return request({
url:'/ops/user/detail/info', url:'/ops/user/update/password',
method:'post', method:'post',
data data
}) })

View File

@@ -205,8 +205,12 @@ const belongToRole = (roles) => {
// 修改密码 // 修改密码
const handleSubmit = async () => { const handleSubmit = async () => {
console.log(userPassword.value);
console.log({...userPassword.value});
// console.log(userPassword.value); // console.log(userPassword.value);
await passwordRef.value.validate() // await passwordRef.value.validate()
editPassword({ editPassword({
...userPassword.value ...userPassword.value
}).then(res => { }).then(res => {

View File

@@ -36,7 +36,7 @@ const router = useRouter()
const authStore = useAuthStore() const authStore = useAuthStore()
const loginForm = reactive({ const loginForm = reactive({
username: 'admin', username: 'admin',
password: '123456', password: 'qwe123',
code: '', code: '',
uuid: '' uuid: ''
}) })