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

bug fixes

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