同步现场代码
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" />
|
||||
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url" />
|
||||
<vue-office-pdf v-if="url.includes('.pdf')" :src="url" />
|
||||
<img v-if="url.includes('.png') || url.includes('.jpg') || url.includes('.gif')" :src="url" />
|
||||
<img
|
||||
v-if="url.includes('.png') || url.includes('.jpg') || url.includes('.gif') || url.includes('.bmp')"
|
||||
:src="url"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
@@ -17,7 +20,9 @@ import VueOfficeExcel from '@vue-office/excel'
|
||||
//引入VueOfficePdf组件
|
||||
import VueOfficePdf from '@vue-office/pdf'
|
||||
const { push, options, currentRoute } = useRouter()
|
||||
const url = 'http://192.168.1.22:9009/excelreport/supervision/' + currentRoute.value.href?.split('?')[1]
|
||||
// const url = 'http://192.168.1.22:9009/excelreport/supervision/' + currentRoute.value.href?.split('?')[1]
|
||||
|
||||
const url = '/api-docx/excelreport/supervision/' + currentRoute.value.href?.split('?')[1]
|
||||
onMounted(() => {
|
||||
console.log()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user