|
@@ -36,12 +36,12 @@ const actions = {
|
|
|
};
|
|
|
if (res.errcode == '0') {
|
|
|
setUser(res.data.key, commit);
|
|
|
- // Notification({
|
|
|
- // title: '登录成功',
|
|
|
- // message: `欢迎,${user.user_name}`,
|
|
|
- // type: 'success',
|
|
|
- // duration: 2000,
|
|
|
- // });
|
|
|
+ Notification({
|
|
|
+ title: '登录成功',
|
|
|
+ // message: `欢迎,${user.user_name}`,
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000,
|
|
|
+ });
|
|
|
return res;
|
|
|
} else {
|
|
|
if (needReturn) return res;
|