diff --git a/frontend/desktop/src/components/desktop_content/index.tsx b/frontend/desktop/src/components/desktop_content/index.tsx index f97ef3f399f8..1553a367d186 100644 --- a/frontend/desktop/src/components/desktop_content/index.tsx +++ b/frontend/desktop/src/components/desktop_content/index.tsx @@ -3,7 +3,7 @@ import MoreButton from '@/components/more_button'; import UserMenu from '@/components/user_menu'; import useDriver from '@/hooks/useDriver'; import useAppStore from '@/stores/app'; -import { TApp } from '@/types'; +import { TApp, WindowSize } from '@/types'; import { Box, Flex, Grid, GridItem, Image, Text } from '@chakra-ui/react'; import { useTranslation } from 'next-i18next'; import dynamic from 'next/dynamic'; @@ -54,17 +54,19 @@ export default function DesktopContent(props: any) { appKey, query = {}, messageData = {}, - pathname = '/' + pathname = '/', + appSize = 'maximize' }: { appKey: string; query?: Record; messageData?: Record; pathname: string; + appSize?: WindowSize; }) => { const app = apps.find((item) => item.key === appKey); const runningApp = runningInfo.find((item) => item.key === appKey); if (!app) return; - openApp(app, { query, pathname }); + openApp(app, { query, pathname, appSize }); if (runningApp) { setToHighestLayerById(runningApp.pid); } diff --git a/frontend/providers/cloudserver/src/pages/cloudservers/components/List.tsx b/frontend/providers/cloudserver/src/pages/cloudservers/components/List.tsx index 7a57501c8f1b..a1966942138d 100644 --- a/frontend/providers/cloudserver/src/pages/cloudservers/components/List.tsx +++ b/frontend/providers/cloudserver/src/pages/cloudservers/components/List.tsx @@ -178,7 +178,8 @@ const OrderList = ({ apps = [], refetchApps }: { apps: any[]; refetchApps: () => query: { defaultCommand }, - messageData: { type: 'new terminal', command: defaultCommand } + messageData: { type: 'new terminal', command: defaultCommand }, + appSize: 'maxmin' }); } },