Karsa 6 ヶ月 前
コミット
141bd73c3c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/views/knowledge_manage/components/eventPreview.vue

+ 1 - 1
src/views/knowledge_manage/components/eventPreview.vue

@@ -25,7 +25,7 @@ export default {
   },
   computed: {
     fileUrl() {
-      return `https://view.officeapps.live.com/op/view.aspx?src=${this.eventDetail.FileUrl}`
+      return this.eventDetail.FileUrl.endsWith('.pdf') ? this.eventDetail.FileUrl : `https://view.officeapps.live.com/op/view.aspx?src=${this.eventDetail.FileUrl}`
     }
   },
   data() {