前端:优惠劵列表

前端:增加路由的认证拦截
This commit is contained in:
YunaiV
2019-04-08 21:47:23 +08:00
parent 92ed97faed
commit 235da59f70
23 changed files with 321 additions and 127 deletions

View File

@@ -73,8 +73,9 @@ export default {
message: '登陆成功',
beforeClose: function (action, done) {
done();
// TODO 芋艿,先暂时不做 callback
that.$router.push('/user/index');
// TODO 芋艿,简单的 callback 后续完善
let redirect = that.$route.query.redirect || '/user/index';
that.$router.push(redirect);
}
});
});