Ver código fonte

Merge branch 'master' of http://git.cc-lotus.info/count/webnew-count

reloaded 4 anos atrás
pai
commit
4cf7a60584
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/layout/common/topInfo.vue

+ 1 - 1
src/layout/common/topInfo.vue

@@ -6,7 +6,7 @@
           <span class="date">{{ data }}</span>
         </el-col>
         <el-col :span="12" class="login">
-          <span v-if="user.type == null">
+          <span v-if="user && user.type == null">
             <el-button size="mini" @click="$router.push({ path: '/login' })">登录</el-button>
             <el-button size="mini" @click="$router.push({ path: '/register' })">注册</el-button>
           </span>