|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
<script>
|
|
|
import AdSwipe from '../ui/AdSwipe'
|
|
|
-import { fetchJyAdList } from '@/utils'
|
|
|
+import { fetchJyAdList, adConfigFormatter } from '@/utils'
|
|
|
|
|
|
export default {
|
|
|
name: 'AdContainer',
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
computed: {
|
|
|
carouselList() {
|
|
|
if (Array.isArray(this.list) && this.list.length) {
|
|
|
- return this.list.map(this.adConfigFormatter)
|
|
|
+ return this.list.map(adConfigFormatter)
|
|
|
} else {
|
|
|
return this.adList
|
|
|
}
|