WXL (wul)
2026-05-07 15c90ad541d895a4e0ceab0dd430260535479341
src/views/outsideChainxjnew.vue
@@ -11,11 +11,7 @@
      <div class="preview-left">
        <div class="toptitle">
          <div class="title">
            {{
              taskname
                ? taskname
                : "医护知识宣教"
            }}
            {{ taskname ? taskname : "医护知识宣教" }}
          </div>
          <div style="font-size: 22px; margin-bottom: 20px; line-height: 1.5">
            {{
@@ -160,10 +156,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) {