feat: 新增支持 KKFileView 文件预览功能,需要自行部署文件预览服务器

This commit is contained in:
KAI
2024-08-01 01:03:02 +00:00
committed by Charles7c
parent 881c1ee1e4
commit 99fa5709ee
9 changed files with 168 additions and 9613 deletions

View File

@@ -22,7 +22,6 @@ export function downloadByUrl({
url: string
target?: '_self' | '_blank'
fileName?: string
isSameHost: boolean
}): Promise<boolean> {
// 是否同源
const isSameHost = new URL(url).host === location.host