diff --git a/src/components/user/Config.vue b/src/components/user/Config.vue index 2933ed9..6d4fa8b 100644 --- a/src/components/user/Config.vue +++ b/src/components/user/Config.vue @@ -132,10 +132,39 @@ - + - + + + + + + + + @@ -186,9 +215,8 @@ export default { }, mounted() { this.$nextTick(function() { - window.addEventListener('resize', this.getWindowWidth); + window.addEventListener('resize', this.getWindowWidth) this.getWindowWidth() - }) }, methods: { @@ -196,9 +224,9 @@ export default { saveConfig: 'user/saveConfig', getStatus: 'user/getStatus' }), - getWindowWidth() { - this.isFulllineText = document.documentElement.clientWidth <= 600; - }, + getWindowWidth() { + this.isFulllineText = document.documentElement.clientWidth <= 600 + }, save() { let user = {} if (this.firstname) user.firstname = this.firstname @@ -249,6 +277,7 @@ export default { +} +