E
Uncaught TypeError: this.$fetch is not a function
Size: a a a
E
Uncaught TypeError: this.$fetch is not a function
E
activated() {this.$fetchState.timestamp - там вроде всё хорошо, запись последнего фетча появляется
// Call fetch again if last fetch more than 30 sec ago
if (this.$fetchState.timestamp <= Date.now() - 30000) {
this.$fetch()
}
},
AM
SW
SW
SW
SW
SW
BS
E
activated() {
if (this.$fetchState.timestamp <= Date.now() - 5000) {
this.$fetch();
}
},
async fetch() {
this.comments = await this.$strapi.find("comments/articles:" + this.page);
},
BS
this.$fetch
, если у тебя this.fetch
E
<button @click="$fetch">Refresh</button>
E
this.fetchтоже не дает результата
BS
{
data: () => ({}),
async asyncData() {},
async fetch() {},
methods: {
async fetch() {},
}
}
NS
E
BS
BS