fanfan 5 months ago
parent b26d6d6882
commit 828ec700ea
  1. 3
      pages/news/recycling/detail.vue

@ -132,11 +132,10 @@
}
},
onLoad(o) {
console.log(o.info)
let info = o.info ? JSON.parse(o.info) : uni.getStorageSync("getInfo");
uni.setStorageSync("getInfo",info)
if (info.content) {
info.content = info.content.replace(/<img src=/g, '<img style="width: 100%; display:block" src=')
console.log(info.content)
}
this.info = info;
this.type = o.type;

Loading…
Cancel
Save