We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
首先,vuex里面的初始值, state 下面各个模块的每个状态 要存上初始值,因为vue会watch这些值的变化来更新到相应的模版上,所以,类似于,对象给初始值为 {} , 数组为 []。
template 里面的尽量不要用 this, data里面的数据直接用名称,不用加上this, 这样可以避免很多生产环境的bug