src/views/mes/md/item/modules/product-media-list.vue
@@ -48,14 +48,17 @@
);
const isReadOnly = computed(() => props.formType === 'detail'); // 是否只读
const title = computed(() => props.kind); // 当前媒体类型标题
const title = computed(() =>
  props.kind === 'SIP' ? '检验指导书(SIP)' : '作业指导书(SOP)',
);
/** 将完整 URL 转为相对路径,确保走前端代理 */
function resolveImageUrl(url?: string): string {
  if (!url) return '';
  try {
    const { pathname } = new URL(url, window.location.origin);
    return pathname;
    const { pathname, search } = new URL(url, window.location.origin);
    // 保留 pathname + 查询参数(publicKey),确保后端能验证
    return pathname + search;
  } catch {
    return url;
  }