我正在为一家公司制作一个 Web 应用程序,在个人资料页面中,我希望用户编辑详细信息并添加更多详细信息并保存它们。我尝试了很多方法,但都不起作用
我希望用户在登录后编辑我们从数据库中获取的这些名字和姓氏
<v-dialog v-model="dialog">
<v-card>
<v-card-title>
<span class="headline">Edit User</span>
</v-card-title>
<v-card-text>
<v-container grid-list-md>
<v-layout wrap>
<v-flex xs12 sm6 md4>
<v-text-field v-model="user.firstName" label="First Name"></v-text-field>
</v-flex>
<v-flex xs12 sm6 md4>
<v-text-field v-model="user.lastName" label="Last Name"></v-text-field>
</v-flex>
</v-layout>
</v-container>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat>Cancel</v-btn>
<v-btn color="blue darken-1" flat>Save</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
噜噜哒