mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:07:58 +08:00
文件预览示例调整
This commit is contained in:
@@ -11,9 +11,9 @@ import '@vue-office/excel/lib/index.css'
|
||||
import VueOfficePdf from '@vue-office/pdf'
|
||||
import Alert from './components/alert.vue'
|
||||
|
||||
const docx = ref('http://static.shanhuxueyuan.com/test6.docx')
|
||||
const excel = ref('http://static.shanhuxueyuan.com/demo/excel.xlsx')
|
||||
const pdf = ref('http://static.shanhuxueyuan.com/test.pdf')
|
||||
const docx = new URL('./files/test.docx', import.meta.url).href
|
||||
const excel = new URL('./files/test.xlsx', import.meta.url).href
|
||||
const pdf = new URL('./files/test.pdf', import.meta.url).href
|
||||
|
||||
function open(url: string) {
|
||||
window.open(url, '_blank')
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user