visuddhinanda 2 лет назад
Родитель
Сommit
bbbe3d31d9
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      dashboard/src/components/article/ArticleEdit.tsx

+ 8 - 1
dashboard/src/components/article/ArticleEdit.tsx

@@ -36,6 +36,7 @@ interface IWidget {
   studioName?: string;
   articleId?: string;
   onReady?: Function;
+  onLoad?: Function;
   onChange?: Function;
 }
 
@@ -43,6 +44,7 @@ const ArticleEditWidget = ({
   studioName,
   articleId,
   onReady,
+  onLoad,
   onChange,
 }: IWidget) => {
   const intl = useIntl();
@@ -120,7 +122,12 @@ const ArticleEditWidget = ({
             mTitle = "无权访问";
           }
           if (typeof onReady !== "undefined") {
-            onReady(mTitle, mReadonly, res.data.studio?.realName);
+            onReady(
+              mTitle,
+              mReadonly,
+              res.data.studio?.realName,
+              res.data.parent_uid
+            );
           }
           return {
             uid: res.data.uid,