Skip to content

Commit 7d2bba6

Browse files
committed
完善增加 login 默认值设置
1 parent be1483f commit 7d2bba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/store/modules/d2admin/modules/account.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default {
1414
* @param {Object} param route {Object} 登录成功后定向的路由对象 任何 vue-router 支持的格式
1515
*/
1616
login ({ dispatch }, {
17-
username,
18-
password
19-
}) {
17+
username = '',
18+
password = ''
19+
} = {}) {
2020
return new Promise((resolve, reject) => {
2121
// 开始请求登录接口
2222
AccountLogin({

0 commit comments

Comments
 (0)