|
@@ -31,7 +31,7 @@ const preview = async ([floder, root]: [Floder, FloderRoot]) => {
|
|
|
const metaType = getUrlType(floder.filesUrl);
|
|
|
if (metaType === MetaType.other) {
|
|
|
const isBlob = floder.filesUrl.includes("blob");
|
|
|
- if (floder.filesTypeId === 100) {
|
|
|
+ if ([3,4].includes(floder.filesTypeId)) {
|
|
|
saveAs(floder.filesUrl, floder.filesTitle + ".doc");
|
|
|
} else {
|
|
|
window.open(floder.filesUrl + (!isBlob ? "?time=" + Date.now() : ""));
|