kosei-n 2 年之前
父節點
當前提交
07b80d2468
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      apps/app/src/components/PageHeader/PagePathHeader.tsx

+ 3 - 1
apps/app/src/components/PageHeader/PagePathHeader.tsx

@@ -67,7 +67,9 @@ export const PagePathHeader: FC<Props> = (props) => {
   ), [currentPagePath, isEditorMode, parentPagePath]);
 
   const handleInputChange = (inputText: string) => {
-    setEditedPagePath(inputText);
+    const editingParentPagePath = inputText;
+    const newPagePath = nodePath.resolve(editingParentPagePath, pageTitle);
+    setEditedPagePath(newPagePath);
   };
 
   const handleEditButtonClick = () => {