瀏覽代碼

去掉新闻详情页轮播

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


Loading…
取消
儲存