Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
🐛 fix alist-org/alist#619 pdf preview
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 26, 2022
1 parent 06348d2 commit 2deba72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/list/preview/office.tsx
Expand Up @@ -6,6 +6,7 @@ import useUnfold from "../../../hooks/useUnfold";
import request from "../../../utils/public";
import useFileUrl from "../../../hooks/useFileUrl";
import { Radio, RadioGroup } from "@chakra-ui/react";
import Pdf from "./pdf";

export const type = 2;
export const exts = [];
Expand All @@ -17,7 +18,7 @@ declare namespace aliyun {
function config(options: { mount: Element; url: string }): Config;
}

const Pdf = lazy(() => import("./pdf"));
// const Pdf = lazy(() => import("./pdf"));

const Office = ({ file }: FileProps) => {
const { pathname } = useLocation();
Expand Down

0 comments on commit 2deba72

Please sign in to comment.