diff --git a/src/components/main/item.vue b/src/components/main/item.vue index 236cc42..c250d2c 100644 --- a/src/components/main/item.vue +++ b/src/components/main/item.vue @@ -11,7 +11,7 @@
-
#{{item.tag}}#
+
#{{item.tag}}#
@@ -116,7 +116,7 @@ import Map from '../../common/keymap.js' composes: space from 'sass-loader!../../scss/utility.scss'; } .author{ - width: 30%; + width: 50%; padding-left: 15px; float: left; composes: common; diff --git a/src/components/profile/changeMessage.vue b/src/components/profile/changeMessage.vue index 5b2da2c..647d823 100644 --- a/src/components/profile/changeMessage.vue +++ b/src/components/profile/changeMessage.vue @@ -66,19 +66,19 @@ export default { submitChange() { if (!this.editChange) return let promise1 = Fetch.FetchData('/api/v1.0/profile/' + this.profile.user_id + '/edit/', 'PUT', { - name: this.newName ? this.newName : this.profile.name, - introduction: this.newIntroduction ? this.newIntroduction : this.profile.introduction, - weibo: this.newWeibo ? this.newWeibo : this.profile.weibo, - img_url: this.pic_url ? this.pic_url : this.profile.weibo.img_url - }).then(value => { - this.profile = value - this.$parent.profile = value - this.$parent.changeMessage = false - this.editChange = false - this.newName = "" - this.newIntroduction = "" - this.newWeibo = "" - }) + name: this.newName ? this.newName : this.profile.name, + introduction: this.newIntroduction ? this.newIntroduction : this.profile.introduction, + weibo: this.newWeibo ? this.newWeibo : this.profile.weibo, + img_url: this.pic_url ? this.pic_url : this.profile.weibo.img_url + }).then(value => { + this.profile = value + this.$parent.profile = value + this.$parent.changeMessage = false + this.editChange = false + this.newName = "" + this.newIntroduction = "" + this.newWeibo = "" + }) }, getName(e) { this.changedImg = URL.createObjectURL(e.target.files[0]) @@ -100,7 +100,7 @@ export default { } } -