mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 17:29:44 +00:00
change app template default author (#2893)
This commit is contained in:
@@ -309,7 +309,7 @@ const RenderList = React.memo(function RenderList({
|
||||
</Box>
|
||||
{item.author !== undefined && (
|
||||
<Box fontSize={'xs'} mr={3}>
|
||||
{`by ${item.author || feConfigs.systemTitle}`}
|
||||
{`By ${item.author || feConfigs.systemTitle}`}
|
||||
</Box>
|
||||
)}
|
||||
{selected ? (
|
||||
|
@@ -24,6 +24,7 @@ import {
|
||||
getTemplateMarketItemDetail,
|
||||
getTemplateMarketItemList
|
||||
} from '@/web/core/app/api/template';
|
||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||
|
||||
type FormType = {
|
||||
avatar: string;
|
||||
@@ -46,6 +47,7 @@ const CreateModal = ({
|
||||
const router = useRouter();
|
||||
const { parentId, loadMyApps } = useContextSelector(AppListContext, (v) => v);
|
||||
const { isPc } = useSystem();
|
||||
const { feConfigs } = useSystemStore();
|
||||
|
||||
const typeMap = useRef({
|
||||
[AppTypeEnum.simple]: {
|
||||
@@ -257,7 +259,7 @@ const CreateModal = ({
|
||||
{t(item.intro as any)}
|
||||
</Box>
|
||||
<Box w={'full'} fontSize={'mini'}>
|
||||
<Box color={'myGray.500'}>By {item.author}</Box>
|
||||
<Box color={'myGray.500'}>{`By ${item.author || feConfigs.systemTitle}`}</Box>
|
||||
<Box
|
||||
className="buttons"
|
||||
display={'none'}
|
||||
|
@@ -189,7 +189,7 @@ const TemplateMarketModal = ({
|
||||
</Box>
|
||||
|
||||
<Box w={'full'} fontSize={'mini'}>
|
||||
<Box color={'myGray.500'}>By {item.author}</Box>
|
||||
<Box color={'myGray.500'}>{`by ${item.author || feConfigs.systemTitle}`}</Box>
|
||||
<Box
|
||||
className="buttons"
|
||||
display={'none'}
|
||||
|
Reference in New Issue
Block a user