瀏覽代碼

处理BUG

wangcz 7 年之前
父節點
當前提交
a985d9233f

+ 1 - 1
components/appeal/AccountAppeal.vue

@@ -304,7 +304,7 @@
       },
 //     判断用户是否登录
       isLogin () {
-        if (!this.logged.isLogin) {
+        if (this.logged && !this.logged.isLogin) {
 //          未登录跳到登录页面
           window.location.href = '/'
         }

+ 1 - 1
components/certification/EnterpriseCertification.vue

@@ -324,7 +324,7 @@
       },
 //      判断用户是否登录
       isLogin () {
-        if (!this.logged.isLogin) {
+        if (this.logged && !this.logged.isLogin) {
 //          未登录跳到登录页面
           window.location.href = '/'
         }

+ 1 - 1
components/certification/RealNameCertification.vue

@@ -181,7 +181,7 @@
       },
 //      判断用户是否登录
       isLogin () {
-        if (!this.logged.isLogin) {
+        if (this.logged && !this.logged.isLogin) {
 //          未登录跳到登录页面
 //          window.location.href = '/'
         }

+ 1 - 1
pages/reset/forgetPasswordValidationAccount.vue

@@ -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'
         } else {
           this.step = 'first'

+ 1 - 1
pages/validation/emailValidation.vue

@@ -66,7 +66,7 @@
           this.stepLast = 'last'
         }
       } else {
-        if (this.logged.isLogin) {
+        if (this.logged && this.logged.isLogin) {
           this.step = 'select'
         } else {
           this.$router.push('/')

+ 1 - 1
pages/validation/phoneValidation.vue

@@ -69,7 +69,7 @@
       if (this.$route.query.token) {
         this.step = 'new'
       } else {
-        if (this.logged.isLogin) {
+        if (this.logged && this.logged.isLogin) {
           this.step = 'select'
         } else {
           this.$router.push('/')