gaoluyang
6 天以前 c7b4b9a2f4c0f05aeb60a9e3f5fba5d9a3676f3f
src/components/filePreview/index.vue
@@ -88,6 +88,7 @@
});
const isPdf = computed(() => {
  console.log(fileUrl.value)
  return /\.pdf$/i.test(fileUrl.value);
});
@@ -163,7 +164,7 @@
};
const open = (url) => {
  fileUrl.value = javaApi + url;
  fileUrl.value = window.location.protocol+'//'+window.location.host+ url;
  dialogVisible.value = true;
};
const handleClose = () => {