fix: 修复修改个人信息后点击tip链接跳转失败问题

This commit is contained in:
“huailei000” 2022-08-02 14:13:28 +08:00 committed by 老广
parent c83abe32c6
commit b6786687b6

View File

@ -1,11 +1,8 @@
<template>
<IBox>
<GenericCreateUpdateForm
:fields="fields"
:fields-meta="fieldsMeta"
:initial="object"
:url="url"
:submit-method="submitMethod"
v-bind="$data"
/>
</IBox>
</template>
@ -29,6 +26,7 @@ export default {
data() {
return {
url: `/api/v1/users/profile/`,
hasDetailInMsg: false,
fields: [
[this.$t('users.Account'), ['username', 'name', 'email']],
[this.$t('common.Other'), ['phone', 'wechat']]
@ -43,13 +41,11 @@ export default {
email: {
disabled: true
}
},
submitMethod() {
return 'patch'
}
}
},
methods: {
submitMethod() {
return 'patch'
}
}
}
</script>