|
@@ -77,6 +77,7 @@ import tool from "@/tool";
|
|
|
import qs from "qs";
|
|
|
import userSets from "@/api/sys/userSets";
|
|
|
import toBeDone from '@/api/toBeDone/toBeDone';
|
|
|
+import $base from "@/utils/config";
|
|
|
export default {
|
|
|
data() {
|
|
|
return{
|
|
@@ -244,12 +245,14 @@ import toBeDone from '@/api/toBeDone/toBeDone';
|
|
|
})
|
|
|
.then((res) => {
|
|
|
let bs=[];
|
|
|
- for(let i=0;i<res.records.length;i++){
|
|
|
- bs.push(res.records[i].bannerImg);
|
|
|
- }
|
|
|
- //需添加url拼接
|
|
|
- //this.BannerImgurls=bs;
|
|
|
- //console.log(this.BannerImgurls);
|
|
|
+
|
|
|
+ res.records[0].bannerImg.split("|").forEach((item) => {
|
|
|
+ if (item.trim().length > 0) {
|
|
|
+ bs.push($base + item.replace('程序附件//','程序附件/'),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.BannerImgurls=bs;
|
|
|
});
|
|
|
},
|
|
|
|