refactor(navbar): 移除头像点击事件的 cursor-pointer 样式并更新路由处理逻辑
This commit is contained in:
@ -24,7 +24,7 @@
|
|||||||
class="w-126px h-32px flex items-center justify-between px-4px pl-4px pr-8px rounded-30px bg-white bg-opacity-60 group"
|
class="w-126px h-32px flex items-center justify-between px-4px pl-4px pr-8px rounded-30px bg-white bg-opacity-60 group"
|
||||||
>
|
>
|
||||||
<div class="flex mr-4px overflow-hidden h-24px lh-24px items-center">
|
<div class="flex mr-4px overflow-hidden h-24px lh-24px items-center">
|
||||||
<div class="cursor-pointer mr-4px">
|
<div class="mr-4px">
|
||||||
<Avatar v-if="userData.head_image" :size="24" :src="userData.head_image" />
|
<Avatar v-if="userData.head_image" :size="24" :src="userData.head_image" />
|
||||||
<div v-else class="w-24px h-24px rounded-50% bg-#6D4CFE flex items-center justify-center">
|
<div v-else class="w-24px h-24px rounded-50% bg-#6D4CFE flex items-center justify-center">
|
||||||
<span class="color-#FFF text-11px font-400 lh-20px">{{ userData.mobile?.slice(-3) }}</span>
|
<span class="color-#FFF text-11px font-400 lh-20px">{{ userData.mobile?.slice(-3) }}</span>
|
||||||
@ -202,8 +202,10 @@ const onEnterpriseItemClick = async (item) => {
|
|||||||
|
|
||||||
if (route.name === 'Trial') {
|
if (route.name === 'Trial') {
|
||||||
router.push({ name: 'Home' });
|
router.push({ name: 'Home' });
|
||||||
|
initApp();
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
}
|
}
|
||||||
initApp();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const clickExit = async () => {
|
const clickExit = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user