소스 검색

去掉新闻详情页轮播

master
winter 1 년 전
부모
커밋
d27cb4303a
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      src/views/article/details.vue

+ 5
- 5
src/views/article/details.vue 파일 보기

@@ -14,7 +14,7 @@
</div>
</template>
<script>
import Swiper from '@/components/swiper'
/*import Swiper from '@/components/swiper'*/
import RightList from './right.vue'
import { lunboList } from '@/api/home.js'
import { detailApi } from '@/api/article.js'
@@ -30,21 +30,21 @@ export default {
}
},
components: {
Swiper,
/*Swiper,*/
RightList
},
mounted () {},
created () {
this.getlunboList()
/*this.getlunboList()*/
this.getDetail()
},
methods: {
async getlunboList () {
/*async getlunboList () {
const { data: { code, data } } = await lunboList()
if (code === 200) {
this.carouselList = data.list
}
},
},*/
async getDetail () {
const { data: { code, data } } = await detailApi(this.$route.query.id)
if (code === 200) {


불러오는 중...
취소
저장