콘텐츠 메인 상단 배너 - 크리에이터 불러오는 API 수정
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
<script>
|
||||
import Draggable from "vuedraggable";
|
||||
|
||||
import * as accountApi from "@/api/member";
|
||||
import * as memberApi from "@/api/member";
|
||||
import * as eventApi from "@/api/event";
|
||||
import * as api from "@/api/audio_content"
|
||||
|
||||
@@ -259,7 +259,7 @@ export default {
|
||||
},
|
||||
|
||||
async created() {
|
||||
await this.getCreatorList()
|
||||
await this.getCreatorAllList()
|
||||
await this.getEvents()
|
||||
await this.getBanners()
|
||||
},
|
||||
@@ -485,11 +485,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
async getCreatorList() {
|
||||
async getCreatorAllList() {
|
||||
this.is_loading = true
|
||||
|
||||
try {
|
||||
const res = await accountApi.getCounselorList()
|
||||
const res = await memberApi.getCreatorAllList()
|
||||
|
||||
if (res.status === 200 && res.data.success === true) {
|
||||
this.creators = res.data.data.map((item) => {
|
||||
|
@@ -194,7 +194,7 @@ export default {
|
||||
} else {
|
||||
this.is_loading = true
|
||||
try {
|
||||
const res = await api.searchCreatorAccount(this.search_word, this.page)
|
||||
const res = await api.searchCreator(this.search_word, this.page)
|
||||
if (res.status === 200 && res.data.success === true) {
|
||||
const data = res.data.data
|
||||
|
||||
@@ -229,7 +229,7 @@ export default {
|
||||
async getAccounts() {
|
||||
this.is_loading = true
|
||||
try {
|
||||
const res = await api.getCreatorAccountList(this.page)
|
||||
const res = await api.getCreatorList(this.page)
|
||||
if (res.status === 200 && res.data.success === true) {
|
||||
const data = res.data.data
|
||||
|
||||
|
Reference in New Issue
Block a user