소스 검색

Merge branch 'hotfix-hb' into dev

hangb 8 년 전
부모
커밋
8c24a7ac59
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      components/mobile/user/Info.vue

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

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