提交 5d08b96d authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 047f5c98
......@@ -25,7 +25,6 @@ Vue.filter('avatar', function(value) {
router.beforeEach((to, from, next) => {
if (to.meta.requiredLogin) {
store.dispatch('checkLogin').then(isLogin => {
window.alert(isLogin)
if (isLogin) {
next()
} else {
......
......@@ -151,7 +151,6 @@ export default {
}
},
beforeMount() {
window.alert(document.cookie)
this.$store.dispatch('checkLogin').then(isLogin => {
if (isLogin) {
this.loginSuccess({ code: 0 })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论