С
Size: a a a
С
ВШ
ВШ
ВШ
ВШ
С
ВШ
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>
Q
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>
А
Q
Q
V
async asyncData({store, params, error}) {
try {
let article = await store.dispatch('pages/articleDetail', params);
return article
} catch(err) {
throw new Error(err)
}
С
V
V
V
Q
async asyncData({store, params, error}) {
try {
let article = await store.dispatch('pages/articleDetail', params);
return article
} catch(err) {
throw new Error(err)
}