|
|
@@ -16,23 +16,9 @@ import Config from '@/config/index'
|
|
|
const { Host80 } = Config
|
|
|
import getWebBase from '@/utils/webBase'
|
|
|
const webBase = getWebBase()
|
|
|
-import { useI18n } from 'vue-i18n'
|
|
|
-const { t } = useI18n()
|
|
|
const fileUrl = ref('')
|
|
|
-const title = ref('')
|
|
|
-const pageTitle = computed(() => t(title.value))
|
|
|
-const fileType = ref('')
|
|
|
-// 获取文件后缀
|
|
|
-const getFileExt = (name) => {
|
|
|
- if (!name) return ''
|
|
|
- return name.split('.').pop()?.toUpperCase()
|
|
|
-}
|
|
|
onLoad((options) => {
|
|
|
- title.value = options.title || '文件预览'
|
|
|
- fileUrl.value = `/iframe/livechat.html`
|
|
|
- console.log(fileUrl.value, 1212);
|
|
|
-
|
|
|
-
|
|
|
+ fileUrl.value = `${Host80}${webBase}iframe/pdf.html`
|
|
|
})
|
|
|
</script>
|
|
|
|