How do I save some values when Vue v-for traverses?

<div class="personal" v-for="(user, index) in allDate" :key="index" >

code as above, the traversing user object has an OpenID value. In data, set openid to receive, but how to assign the value to the openid in data?

Oct.20,2021

iterate through the openid value of user in the beforeCreate hook of vue and assign it to the openid of data

<div class="personal" v-for="(user, index) in allDate" :key="index" @click="doSomeThing(user.openid)">

vue:
methods: {
    doSomeThing(openid) {
        this.data.openid = openid;
    }
}

you can traverse the assignment after the allDate data is pulled down.

Menu