update
This commit is contained in:
@@ -106,7 +106,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
{
|
{
|
||||||
label: "我的主页",
|
label: "我的主页",
|
||||||
key: "home",
|
key: "home",
|
||||||
icon: renderIcon("streamline-emojis:clipboard"),
|
icon: renderIcon("streamline-emojis:newspaper"),
|
||||||
props: {
|
props: {
|
||||||
onClick: () => router.push("/user"),
|
onClick: () => router.push("/user"),
|
||||||
},
|
},
|
||||||
@@ -130,7 +130,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
{
|
{
|
||||||
label: "我的设置",
|
label: "我的设置",
|
||||||
key: "setting",
|
key: "setting",
|
||||||
icon: renderIcon("streamline-emojis:game-dice"),
|
icon: renderIcon("streamline-emojis:robot-face-1"),
|
||||||
props: {
|
props: {
|
||||||
onClick: () => router.push("/setting"),
|
onClick: () => router.push("/setting"),
|
||||||
},
|
},
|
||||||
@@ -139,7 +139,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
{
|
{
|
||||||
label: "退出",
|
label: "退出",
|
||||||
key: "logout",
|
key: "logout",
|
||||||
icon: renderIcon("streamline-emojis:bathtub"),
|
icon: renderIcon("streamline-emojis:hot-beverage-2"),
|
||||||
props: { onClick: handleLogout },
|
props: { onClick: handleLogout },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -166,7 +166,7 @@ function goHome() {
|
|||||||
/>
|
/>
|
||||||
</n-space>
|
</n-space>
|
||||||
<n-space align="center">
|
<n-space align="center">
|
||||||
<n-dropdown v-if="isMobile" :options="menus">
|
<n-dropdown v-if="isMobile" :options="menus" size="large">
|
||||||
<n-button>
|
<n-button>
|
||||||
<Icon
|
<Icon
|
||||||
icon="streamline-emojis:clipboard"
|
icon="streamline-emojis:clipboard"
|
||||||
@@ -186,12 +186,12 @@ function goHome() {
|
|||||||
{{ screenSwitchLabel }}
|
{{ screenSwitchLabel }}
|
||||||
</n-button>
|
</n-button>
|
||||||
<div v-if="userStore.isFinished">
|
<div v-if="userStore.isFinished">
|
||||||
<n-dropdown v-if="userStore.isAuthed" :options="options">
|
<n-dropdown v-if="userStore.isAuthed" :options="options" size="large">
|
||||||
<n-button @click="getRandomAvatar">
|
<n-button @click="getRandomAvatar">
|
||||||
<Icon :icon="avatar" :height="24" :width="24"></Icon>
|
<Icon :icon="avatar" :height="20" :width="20"></Icon>
|
||||||
<span style="padding-left: 8px">{{
|
<span style="padding-left: 8px">
|
||||||
userStore.user!.username
|
{{ userStore.user!.username }}
|
||||||
}}</span>
|
</span>
|
||||||
</n-button>
|
</n-button>
|
||||||
</n-dropdown>
|
</n-dropdown>
|
||||||
<n-flex align="center" v-else>
|
<n-flex align="center" v-else>
|
||||||
|
|||||||
Reference in New Issue
Block a user