src/views/outsideChainxj.vue
@@ -123,10 +123,21 @@ }, addStyleToImages(html) { return html.replace( if (!html) return html; // 1. 先修复路径 let processedHtml = html.replace( /\/aifollowup\/aifollowup\//g, "/aifollowup/" ); // 2. 再修复样式 processedHtml = processedHtml.replace( /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g, '<img$1style="width:100%;height:auto;"$3>' ); return processedHtml; }, // 加密函数 encrypt(txt) {