|
@@ -1,11 +1,12 @@
|
|
|
<template>
|
|
|
- <hc-pdf v-if="isPdfDom" :src="pdfUrl" :download="isDownload" :print="isPrint" />
|
|
|
+ <hc-pdf v-if="isPdfDom" :src="pdfUrl" :download="isDownload" :print="isPrint" :is-https="isHttps" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
import { btnAuth, decode } from '~uti/btn-auth'
|
|
|
import { isNullES } from 'js-fast-way'
|
|
|
+import website from '~src/config'
|
|
|
|
|
|
const props = defineProps({
|
|
|
url: {
|
|
@@ -35,7 +36,9 @@ watch(() => [props.url, props.code], ([url, code]) => {
|
|
|
const isPdfDom = ref(false)
|
|
|
const isDownload = ref(false)
|
|
|
const isPrint = ref(false)
|
|
|
+const isHttps = ref(false)
|
|
|
onMounted(() => {
|
|
|
+ isHttps.value = !website.localModel
|
|
|
isDownload.value = btnAuth('measure-pdf-download')
|
|
|
isPrint.value = btnAuth('measure-pdf-print')
|
|
|
setPdfSrcData()
|