Vuex gets the status value, but assigning it to data, doesn't work.


Mar.23,2021

it seems that the newAuthor method in methods did not call


how is this written? Since you want to get the value of author, just

author () {
    return this.$store.state.author
}
Just

, why bother to use author1 to transfer
suspected that mouted was triggered before setAuthor, so did not get the value

that's it + 1

author (author) {
    // 
    this.[](author)
    return this.$store.state.author
}
Menu