From ff985d3f29492007186ec71cb71919ec6a8f43be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E9=BE=99=E9=BE=99?= Date: Thu, 30 Nov 2023 21:32:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(portal-web):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=AE=A1=E7=90=86=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20(#1015)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ![image](https://github.com/PKUHPC/SCOW/assets/140392039/12d0dcd6-d855-4d80-ac3b-98d735304e57) ```typescript // return ; return ; ``` --- .changeset/red-meals-kick.md | 5 +++++ apps/portal-web/src/pages/files/[cluster]/~.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/red-meals-kick.md diff --git a/.changeset/red-meals-kick.md b/.changeset/red-meals-kick.md new file mode 100644 index 0000000000..1a521dc437 --- /dev/null +++ b/.changeset/red-meals-kick.md @@ -0,0 +1,5 @@ +--- +"@scow/portal-web": patch +--- + +修复文件管理跳转路径导致的控制台报错 diff --git a/apps/portal-web/src/pages/files/[cluster]/~.tsx b/apps/portal-web/src/pages/files/[cluster]/~.tsx index 05db9ed3d3..a91bf132b6 100644 --- a/apps/portal-web/src/pages/files/[cluster]/~.tsx +++ b/apps/portal-web/src/pages/files/[cluster]/~.tsx @@ -14,6 +14,7 @@ import { queryToString } from "@scow/lib-web/build/utils/querystring"; import { Spin } from "antd"; import { NextPage } from "next"; import { useRouter } from "next/router"; +import { join } from "path"; import { useCallback } from "react"; import { useAsync } from "react-async"; import { api } from "src/apis"; @@ -39,7 +40,7 @@ export const HomeDirFileManagerPage: NextPage = requireAuth(() => true)(() => { return ; } - return ; + return ; }); export default HomeDirFileManagerPage;