diff --git a/src/api/system/userInfo.js b/src/api/system/userInfo.js index aea3348..60a361d 100644 --- a/src/api/system/userInfo.js +++ b/src/api/system/userInfo.js @@ -47,15 +47,11 @@ export function resetPwd(data) { } // 用户密码修改 -export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } +export function updateUserPwd(data) { return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - params: data + url: '/system/user/updatePwd', + method: 'post', + data: data }) } diff --git a/src/router/index.js b/src/router/index.js index b09eccf..72f1e3e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,14 +65,14 @@ export const constantRoutes = [ path: '', component: Layout, redirect: 'index', - // children: [ - // { - // path: 'index', - // component: () => import('@/views/dashboard'), - // name: 'Index', - // meta: { title: '首页', icon: 'dashboard', affix: true } - // } - // ] + children: [ + { + path: 'index', + component: () => import('@/views/index'), + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } + ] }, { path: '/user', diff --git a/src/views/index.vue b/src/views/index.vue index f29b8a1..5ee8f42 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -2,13 +2,11 @@
- 当前版本: v{{ version }} -
+