@@ -304,7 +304,7 @@
},
// 判断用户是否登录
isLogin () {
- if (!this.logged.isLogin) {
+ if (this.logged && !this.logged.isLogin) {
// 未登录跳到登录页面
window.location.href = '/'
}
@@ -324,7 +324,7 @@
@@ -181,7 +181,7 @@
// window.location.href = '/'
@@ -68,7 +68,7 @@
if (this.$route.query.token) {
this.step = 'security'
} else {
- if (this.logged.isLogin) {
+ if (this.logged && this.logged.isLogin) {
this.step = 'select'
this.step = 'first'
@@ -66,7 +66,7 @@
this.stepLast = 'last'
this.$router.push('/')
@@ -69,7 +69,7 @@
this.step = 'new'