visuddhinanda 3 лет назад
Родитель
Сommit
ea878e3d0e
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      dashboard/src/pages/studio/article/list.tsx

+ 13 - 0
dashboard/src/pages/studio/article/list.tsx

@@ -29,6 +29,7 @@ import {
 import { PublicityValueEnum } from "../../../components/studio/table";
 import { useRef, useState } from "react";
 import AnthologyModal from "../../../components/anthology/AnthologyModal";
+import ArticleTplMaker from "../../../components/article/ArticleTplMaker";
 
 const { Text } = Typography;
 
@@ -170,6 +171,18 @@ const Widget = () => {
                   type="link"
                   menu={{
                     items: [
+                      {
+                        key: "tpl",
+                        label: (
+                          <ArticleTplMaker
+                            title={row.title}
+                            type="article"
+                            id={row.id}
+                            trigger={<>模版</>}
+                          />
+                        ),
+                        icon: <TeamOutlined />,
+                      },
                       {
                         key: "share",
                         label: intl.formatMessage({