Commit ae9b3cd3 by 林家欣

fix: 修改首页要闻左侧后台图片预览接口

parent bac90685
...@@ -1132,15 +1132,13 @@ export default { ...@@ -1132,15 +1132,13 @@ export default {
const query = { const query = {
id: pictureId, id: pictureId,
}; };
const indexCarouselManageRes = await this.$api.home.indexCarouselManage( const homePictureRes = await this.$api.home.homePicture(
query query
); );
const { returnCode, data } = indexCarouselManageRes; const { returnCode, data } = homePictureRes;
console.log(indexCarouselManageRes, "后台轮播图预览2"); console.log(homePictureRes, "后台轮播图预览2");
if (returnCode === "0") { if (returnCode === "0" && data) {
const list = []; const list = [];
data.jumppath = data.directpath;
data.picFile = data.picIndexPath;
list.push(data); list.push(data);
this.newsBanner = list; this.newsBanner = list;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment