<div class="text">{{$t("store.home.title3")}}</div>
{{}}中的意思其实是省略了this 所以在js中调用时,需要加上this
this.categoryList =[
{
id:null,
category_name:this.$t("store.home.title3")
}]
<div class="text">{{$t("store.home.title3")}}</div>
{{}}中的意思其实是省略了this 所以在js中调用时,需要加上this
this.categoryList =[
{
id:null,
category_name:this.$t("store.home.title3")
}]