|
|
@@ -11,15 +11,15 @@
|
|
|
<a-icon type="home" />首页
|
|
|
</router-link>
|
|
|
</a-menu-item>
|
|
|
- <a-menu-item key="2" @click="jumpToUserInfo">
|
|
|
+ <a-menu-item key="2" @click="jumpToUserInfo" v-if="userInfo.userType=='Client'">
|
|
|
<a-icon type="user" />个人中心
|
|
|
</a-menu-item>
|
|
|
- <a-menu-item key="3" @click="selectMenu">
|
|
|
+ <a-menu-item key="3" @click="selectMenu" v-if="userInfo.userType=='HotelManager'">
|
|
|
<router-link :to="{ name: 'manageHotel'}">
|
|
|
<a-icon type="switcher" />酒店管理
|
|
|
</router-link>
|
|
|
</a-menu-item>
|
|
|
- <a-menu-item key="4" @click="selectMenu">
|
|
|
+ <a-menu-item key="4" @click="selectMenu" v-if="userInfo.userType=='Admin'">
|
|
|
<router-link :to="{ name: 'manageUser'}">
|
|
|
<a-icon type="user" />账户管理
|
|
|
</router-link>
|
|
|
@@ -29,7 +29,7 @@
|
|
|
<a-dropdown placement="bottomCenter">
|
|
|
<div class="user">
|
|
|
<a-avatar src="./defaultAvatar.png"></a-avatar>
|
|
|
- <span style="font-size: 18px">{{ userInfo.username }}</span>
|
|
|
+ <span style="font-size: 14px">{{ userInfo.userName }}</span>
|
|
|
<a-icon style="margin-left: 3px; font-size: 16px" type="down"></a-icon>
|
|
|
</div>
|
|
|
<a-menu slot="overlay">
|