完善增加 login 默认值设置
Former-commit-id: 394a6b5abce62dbbae8baa1d05ab8c5c19af2c05 [formerly 394a6b5abce62dbbae8baa1d05ab8c5c19af2c05 [formerly 394a6b5abce62dbbae8baa1d05ab8c5c19af2c05 [formerly 394a6b5abce62dbbae8baa1d05ab8c5c19af2c05 [formerly d437fb727a59ca8e014a104dc1d6b2c2ac162aa4 [formerly ea66b2839d0e4fe84261b2403377499a19170ba3]]]]] Former-commit-id: 882b77ee17407651b1a3520a1ccd2c8debe6b781 Former-commit-id: d0a9bacad7a4501954b1b71c080e84d01453c81a Former-commit-id: d19ba9ad03118fd787cb056854792401c9b880c9 [formerly 464ac737e1c3b873e296b1ac82e073ec95bddc4e] Former-commit-id: 9bad68035a289f4afacd3e7ffd024344552b2d13 Former-commit-id: b045363c310e48013d314102c46068e04ef33041 Former-commit-id: 9481df786ea54641883e507725260ac598a111b2 Former-commit-id: 0ff041fe2ac20cea8208e632ac5c517044b2e529 Former-commit-id: 322fe029169169f53c921fd864a64ca81a8b3b1c
This commit is contained in:
@@ -14,9 +14,9 @@ export default {
|
||||
* @param {Object} param route {Object} 登录成功后定向的路由对象 任何 vue-router 支持的格式
|
||||
*/
|
||||
login ({ dispatch }, {
|
||||
username,
|
||||
password
|
||||
}) {
|
||||
username = '',
|
||||
password = ''
|
||||
} = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
// 开始请求登录接口
|
||||
AccountLogin({
|
||||
|
||||
Reference in New Issue
Block a user