This commit is contained in:
2024-08-02 14:31:56 +08:00
parent f8bca9ff88
commit 649cde9aa6
15 changed files with 507 additions and 138 deletions
@@ -55,6 +55,10 @@ const FILE_PREVIEW_ADDRESS = '/file_server/preview'
const FILE_DOWNLOAD_ADDRESS = '/file_server/download'
const FILE_STREAM_PREVIEW_ADDRESS = '/file_server/fileStreamPreview'
const CREATE_PREVIEW_URL = (val) => {
return FILE_STREAM_PREVIEW_ADDRESS + "?id=" + val
}
const preview = async (filename, id) => {
const suffix = filename.substring(filename.lastIndexOf('.') + 1)
@@ -1955,4 +1959,4 @@ const loc = () => {
const clone = (obj) => {
return JSON.parse(JSON.stringify(obj))
}
}