Pārlūkot izejas kodu

fix: 监督执法链接修改

TwoKe945 1 gadu atpakaļ
vecāks
revīzija
1c96e72b27
1 mainītis faili ar 12 papildinājumiem un 4 dzēšanām
  1. 12 4
      app/src/views/Detail/components/BuildingInfo.vue

+ 12 - 4
app/src/views/Detail/components/BuildingInfo.vue

@@ -158,10 +158,18 @@ export default {
         const files = [];
         if (res.data.data && res.data.data.length > 0) {
           res.data.data.forEach((p) => {
-            files.push({
-              url: `http://183.66.101.53:8787/images/${this.detail.id}/${p.fjlj}`,
-              name: p.fjmc,
-            });
+            console.log('文件:',p)
+            if (p.fjid) {
+              files.push({
+                url: `https://zfjg.cq119.gov.cn/api/file/${p.fjid}/open`,
+                name: p.fjmc,
+              });
+            } else {
+              files.push({
+                url: `http://183.66.101.53:8787/images/${this.detail.id}/${p.fjlj}`,
+                name: p.fjmc,
+              });
+            }
           });
         }
         this.files = files;