|
@@ -9,7 +9,7 @@
|
|
|
<el-col :span="12" class="one-2">
|
|
|
<el-button size="small">{{ user && user._id ? user.name || user.title : '游客' }}</el-button>
|
|
|
<el-button type="primary" size="small" @click="toLogin" v-if="user && !user._id">平台登录</el-button>
|
|
|
- <el-button type="primary" size="small" @click="toCenter" v-if="user && user._id">个人中心</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="toCenter" v-if="user && user._id && user.type != '10'">个人中心</el-button>
|
|
|
<el-button type="danger" size="small" @click="toLogout" v-if="user && user._id">退出登录</el-button>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -90,7 +90,6 @@ let user: Ref<any> = ref({})
|
|
|
const siteInfos: Ref<any> = ref(siteInfo)
|
|
|
const menuList: Ref<any> = ref(menuInfo.menuList)
|
|
|
onMounted(async () => {
|
|
|
- console.log(store.state.user)
|
|
|
user.value = store.state.user
|
|
|
await search()
|
|
|
})
|