8000 希望预览失效能够直接下载文件 · Issue #86 · zfile-dev/zfile-vue · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
希望预览失效能够直接下载文件 #86
Open
@CHN-STUDENT

Description

@CHN-STUDENT

RT,大概这样,可惜我得java环境坏了,不好调试了。。

switch (fileType) {
		case 'video': openVideo(); break;
		case 'image': openImage(row); break;
		case 'text': openText(); break;
		case 'audio': openAudio(row); break;
		case 'office':
				// 增加判断,如果 onlyOfficeUrl 为空,则作为普通文件下载
				console.log("office预览地址:",`${storageConfigStore.globalConfig.onlyOfficeUrl}`)
				if (storageConfigStore.globalConfig.onlyOfficeUrl) {
						openOffice(row);
				} else {
						batchDownloadFile(row);
				}
				break;
		case 'pdf': openPdf(row); break;
		case 'three3d': open3d(row); break;
		default: batchDownloadFile(row);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0