浏览代码

Merge branch 'hotfix-hb' into dev

hangb 7 年之前
父节点
当前提交
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