fix: 修复profile接口一直请求问题
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<el-input maxlength="64" show-word-limit v-model="editProfile.roles[0].i18n" disabled size="small" type="text"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('profile.role')" v-else prop="roles">
|
||||
<el-input maxlength="64" show-word-limit v-model="editProfile.roles[0].i18n" disabled size="small" type="text"></el-input>
|
||||
<el-input maxlength="64" show-word-limit v-model="editProfile.roles[0].name" disabled size="small" type="text"></el-input>
|
||||
</el-form-item>
|
||||
<!--language-->
|
||||
<el-form-item :label="$t('config.user.language')" prop="lang">
|
||||
@@ -123,6 +123,7 @@ export default {
|
||||
if (res.code === 200) {
|
||||
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||
this.esc(true)
|
||||
this.$emit('clickProfile')
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<transition name="right-box">
|
||||
<profile-box v-if="rightBox.show" :obj="object" @close="closeRightBox"></profile-box>
|
||||
<profile-box v-if="rightBox.show" :obj="object" @clickProfile="clickProfile" @close="closeRightBox"></profile-box>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
@@ -224,9 +224,6 @@ export default {
|
||||
mounted () {
|
||||
this.personalCenter()
|
||||
},
|
||||
beforeUpdate () {
|
||||
this.personalCenter()
|
||||
},
|
||||
methods: {
|
||||
// 请求后端数据
|
||||
personalCenter () {
|
||||
@@ -314,6 +311,9 @@ export default {
|
||||
this.object = res.user
|
||||
})
|
||||
},
|
||||
clickProfile () {
|
||||
this.personalCenter()
|
||||
},
|
||||
closeDialog () {
|
||||
this.authBindShow = false
|
||||
this.bindAuthCode = ''
|
||||
|
||||
Reference in New Issue
Block a user