diff --git a/src/api/user.js b/src/api/user.js index f7703c1..17e144d 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -9,14 +9,14 @@ import config from '../utils/config'; * @param {string} data.role - 角色,默认为 partner * @returns {Promise} - 返回登录结果 */ -export function login(data) { +export function login(postData) { return request({ url: config.API.LOGIN, method: 'post', data: { - phone: data.phone, - password: data.password, - role: data.role || 'partner' + phone: postData.phone, + password: postData.password, + role: 'partner' } }); } \ No newline at end of file diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index b9276f8..3656c2c 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -1,75 +1,138 @@