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-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>
|
||||||
<el-form-item :label="$t('profile.role')" v-else prop="roles">
|
<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>
|
</el-form-item>
|
||||||
<!--language-->
|
<!--language-->
|
||||||
<el-form-item :label="$t('config.user.language')" prop="lang">
|
<el-form-item :label="$t('config.user.language')" prop="lang">
|
||||||
@@ -123,6 +123,7 @@ export default {
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||||
this.esc(true)
|
this.esc(true)
|
||||||
|
this.$emit('clickProfile')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<transition name="right-box">
|
<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>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -224,9 +224,6 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
this.personalCenter()
|
this.personalCenter()
|
||||||
},
|
},
|
||||||
beforeUpdate () {
|
|
||||||
this.personalCenter()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 请求后端数据
|
// 请求后端数据
|
||||||
personalCenter () {
|
personalCenter () {
|
||||||
@@ -314,6 +311,9 @@ export default {
|
|||||||
this.object = res.user
|
this.object = res.user
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
clickProfile () {
|
||||||
|
this.personalCenter()
|
||||||
|
},
|
||||||
closeDialog () {
|
closeDialog () {
|
||||||
this.authBindShow = false
|
this.authBindShow = false
|
||||||
this.bindAuthCode = ''
|
this.bindAuthCode = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user