diff --git a/src/api/auth/auth.js b/src/api/auth/auth.js index 62cb2da..0927577 100644 --- a/src/api/auth/auth.js +++ b/src/api/auth/auth.js @@ -10,7 +10,7 @@ export const modifyUser=(data)=>{ } export const editPassword=(data)=>{ return request({ - url:'/ops/user/detail/info', + url:'/ops/user/update/password', method:'post', data }) diff --git a/src/views/auth/index.vue b/src/views/auth/index.vue index 4e421e8..a685e41 100644 --- a/src/views/auth/index.vue +++ b/src/views/auth/index.vue @@ -205,8 +205,12 @@ const belongToRole = (roles) => { // 修改密码 const handleSubmit = async () => { + console.log(userPassword.value); + + console.log({...userPassword.value}); + // console.log(userPassword.value); - await passwordRef.value.validate() + // await passwordRef.value.validate() editPassword({ ...userPassword.value }).then(res => { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 98bdd88..0dbef2c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -36,7 +36,7 @@ const router = useRouter() const authStore = useAuthStore() const loginForm = reactive({ username: 'admin', - password: '123456', + password: 'qwe123', code: '', uuid: '' })