我希望用户更新详细信息(名字、姓氏)并保存它们。在这里,我只能访问给定的详细信息。更新后如何将它们再次保存到相同的变量?
<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-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>