mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-06 00:57:08 +08:00
feat: 新增支持 KKFileView 文件预览功能,需要自行部署文件预览服务器
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user