Fixed style error.

pull/9/head
ruibaby 2019-04-20 12:51:21 +08:00
parent a5ee519382
commit fbc31ecf7f
2 changed files with 14 additions and 7 deletions

View File

@ -71,13 +71,11 @@ export default {
</script>
<style lang="less">
.CodeMirror {
height: 560px;
}
.CodeMirror-gutters {
border-right: 1px solid #fff3f3;
background-color: #ffffff;
}
.ant-card {
.ant-card-body {
padding: 16px;
}
}
</style>

View File

@ -9,7 +9,7 @@
<span>prompt text</span>
</template>
<div class="avatar">
<img :src="user.avatar || 'https://gravatar.loli.net/avatar/?s=256&d=mm'">
<img :src="user.avatar || 'https://gravatar.loli.net/avatar/?s=256&d=mm'" @click="showAttachDrawer">
</div>
</a-tooltip>
<div class="username">{{ user.nickname }}</div>
@ -96,18 +96,24 @@
</a-card>
</a-col>
</a-row>
<AttachmentDrawer v-model="attachmentDrawerVisible"/>
</div>
</template>
<script>
import AttachmentDrawer from '../attachment/components/AttachmentDrawer'
import userApi from '@/api/user'
import adminApi from '@/api/admin'
export default {
components: {},
components: {
AttachmentDrawer
},
data() {
return {
countsLoading: true,
attachmentDrawerVisible: false,
user: {},
counts: {},
passwordParam: {
@ -127,6 +133,9 @@ export default {
this.getCounts()
},
methods: {
showAttachDrawer() {
this.attachmentDrawerVisible = true
},
loadUser() {
userApi.getProfile().then(response => {
this.user = response.data.data