С
Size: a a a
С
Q
С
Q
С
try {
const article = await this.$axios.$get(`/pages/article/${params.page}/?cat=${params.cat}`)
const name = article.category.breadcrumb.toLowerCase()
commit('setObj', {name: 'logoSubtext', value: name}, {root: true})
commit('comments/setObj', {name: 'comments', value: article.comments}, {root: true})
return article
} catch (e) {
this.$toast.error(e).goAway(3500)
console.log(e)
}
IT
Q
ЕЕ
IT
Q
try {
const article = await this.$axios.$get(`/pages/article/${params.page}/?cat=${params.cat}`)
const name = article.category.breadcrumb.toLowerCase()
commit('setObj', {name: 'logoSubtext', value: name}, {root: true})
commit('comments/setObj', {name: 'comments', value: article.comments}, {root: true})
return article
} catch (e) {
this.$toast.error(e).goAway(3500)
console.log(e)
}
С
Q
AZ
Q
А
import Vue from 'vue'добавляю в
import VueSliderComponent from 'vue-slider-component'
Vue.use(VueSliderComponent);
plugins: [добавляю на страничке index.vue
'~/plugins/vue-slider-component.client',
<client-only placeholder="loading...">Компонент не отображается и ругается в консоли:
<VueSliderComponent ref="slider" v-bind="slider" v-model="filters.price"></VueSliderComponent>
</client-only>
[Vue warn]: Unknown custom element: <VueSliderComponent> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Pages/index.vue> at pages/index.vue
<Nuxt>
<Layouts/withoutFooter.vue> at layouts/without_footer.vue
<Root>
import Vue from 'vue'
import VueSliderComponent from 'vue-slider-component'
Vue.use(VueSliderComponent);
import Vue from 'vue'
import VueSliderComponent from 'vue-slider-component'
Vue.component('VueSliderComponent', VueSliderComponent);
А
Q
AZ
А
Q