visuddhinanda vor 2 Jahren
Ursprung
Commit
bbbe3d31d9
1 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  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;
   studioName?: string;
   articleId?: string;
   articleId?: string;
   onReady?: Function;
   onReady?: Function;
+  onLoad?: Function;
   onChange?: Function;
   onChange?: Function;
 }
 }
 
 
@@ -43,6 +44,7 @@ const ArticleEditWidget = ({
   studioName,
   studioName,
   articleId,
   articleId,
   onReady,
   onReady,
+  onLoad,
   onChange,
   onChange,
 }: IWidget) => {
 }: IWidget) => {
   const intl = useIntl();
   const intl = useIntl();
@@ -120,7 +122,12 @@ const ArticleEditWidget = ({
             mTitle = "无权访问";
             mTitle = "无权访问";
           }
           }
           if (typeof onReady !== "undefined") {
           if (typeof onReady !== "undefined") {
-            onReady(mTitle, mReadonly, res.data.studio?.realName);
+            onReady(
+              mTitle,
+              mReadonly,
+              res.data.studio?.realName,
+              res.data.parent_uid
+            );
           }
           }
           return {
           return {
             uid: res.data.uid,
             uid: res.data.uid,