mirror of https://github.com/halo-dev/halo-admin
Fixed style error.
parent
a5ee519382
commit
fbc31ecf7f
|
@ -71,13 +71,11 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
.CodeMirror {
|
||||||
|
height: 560px;
|
||||||
|
}
|
||||||
.CodeMirror-gutters {
|
.CodeMirror-gutters {
|
||||||
border-right: 1px solid #fff3f3;
|
border-right: 1px solid #fff3f3;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
.ant-card {
|
|
||||||
.ant-card-body {
|
|
||||||
padding: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<span>prompt text</span>
|
<span>prompt text</span>
|
||||||
</template>
|
</template>
|
||||||
<div class="avatar">
|
<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>
|
</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<div class="username">{{ user.nickname }}</div>
|
<div class="username">{{ user.nickname }}</div>
|
||||||
|
@ -96,18 +96,24 @@
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
|
<AttachmentDrawer v-model="attachmentDrawerVisible"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import AttachmentDrawer from '../attachment/components/AttachmentDrawer'
|
||||||
import userApi from '@/api/user'
|
import userApi from '@/api/user'
|
||||||
import adminApi from '@/api/admin'
|
import adminApi from '@/api/admin'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {
|
||||||
|
AttachmentDrawer
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
countsLoading: true,
|
countsLoading: true,
|
||||||
|
attachmentDrawerVisible: false,
|
||||||
user: {},
|
user: {},
|
||||||
counts: {},
|
counts: {},
|
||||||
passwordParam: {
|
passwordParam: {
|
||||||
|
@ -127,6 +133,9 @@ export default {
|
||||||
this.getCounts()
|
this.getCounts()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showAttachDrawer() {
|
||||||
|
this.attachmentDrawerVisible = true
|
||||||
|
},
|
||||||
loadUser() {
|
loadUser() {
|
||||||
userApi.getProfile().then(response => {
|
userApi.getProfile().then(response => {
|
||||||
this.user = response.data.data
|
this.user = response.data.data
|
||||||
|
|
Loading…
Reference in New Issue