add avatar
This commit is contained in:
1 parent
2a5a5c601c
commit
ee99215af4
8 files changed
+55
-12
No files matched your search
@@ -11,11 +11,14 @@
|
||||
</el-menu>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<div class="mt-4 pr-10">
|
||||
<div class="mt-4 pr-10" v-if="!$store.getters.authenticated">
|
||||
<el-button type="primary" class="float-right" size="small" round @click="onLogin">{{
|
||||
$t('common.button.login')
|
||||
}}</el-button>
|
||||
</div>
|
||||
<div class="mt-3 pr-10 float-right" v-else>
|
||||
<img :src="$store.getters.user?.avatar" class="avatar" />
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-main>
|
||||
@@ -73,5 +76,10 @@ export default defineComponent({
|
||||
.el-main {
|
||||
padding: 0;
|
||||
}
|
||||
.avatar {
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user