Browse Source

Merge branch 'hotfix-hb' into dev

hangb 7 years ago
parent
commit
8c24a7ac59
1 changed files with 7 additions and 0 deletions
  1. 7 0
      components/mobile/user/Info.vue

+ 7 - 0
components/mobile/user/Info.vue

@@ -43,6 +43,13 @@
         imageUploadUrl: ''
         imageUploadUrl: ''
       }
       }
     },
     },
+    mounted: function () {
+      this.$nextTick(() => {
+        if (!this.$store.state.option.user.logged) {
+          this.$router.push('/auth/login?returnUrl=' + window.location.href)
+        }
+      })
+    },
     computed: {
     computed: {
       getEmail () {
       getEmail () {
         return this.$store.state.user.updateUser.email.data.content
         return this.$store.state.user.updateUser.email.data.content