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