|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="detailsHome" v-if="contentsItem">
|
|
|
+ <div ref="detailsHome" class="detailsHome" v-if="contentsItem">
|
|
|
<breadcrumb ref="breadcrumb"></breadcrumb>
|
|
|
<img class="thumbnail" v-if="isshow" :src="contentsItem.thumbnail">
|
|
|
<h1 class="title">{{ contentsItem.title }}</h1>
|
|
@@ -41,6 +41,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
await this.contentsFetch({ id: this.id });
|
|
|
+ this.$refs.detailsHome.scrollIntoView(true);
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['contentsFetch', 'imgNewsFetch'])
|