feat: add nickname field for user

This commit is contained in:
RockYang
2023-12-29 17:39:37 +08:00
parent 3d2035d08a
commit 3c6e86d04b
9 changed files with 40 additions and 39 deletions

View File

@@ -14,7 +14,10 @@
</el-icon>
</el-upload>
</el-row>
<el-form-item label="账户">
<el-form-item label="昵称">
{{ user['nickname'] }}
</el-form-item>
<el-form-item label="手机号">
<span>{{ user.mobile }}</span>
<el-tooltip
class="box-item"

View File

@@ -43,7 +43,7 @@
<el-dropdown :hide-on-click="true" class="user-info" trigger="click" v-if="isLogin">
<span class="el-dropdown-link">
<el-image :src="loginUser.avatar"/>
<span class="username">{{ '极客学长@' + loginUser.mobile }}</span>
<span class="username">{{ loginUser.nickname }}</span>
<el-icon><ArrowDown/></el-icon>
</span>
<template #dropdown>
@@ -105,12 +105,12 @@
:value="item.id"
/>
</el-select>
<el-button type="primary" @click="newChat">
<el-icon>
<Plus/>
</el-icon>
新建对话
</el-button>
<el-button type="primary" @click="newChat">
<el-icon>
<Plus/>
</el-icon>
新建对话
</el-button>
<el-button type="success" @click="exportChat" plain>
<i class="iconfont icon-export"></i>