| @@ -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) { | ||||